Fix inconsistent naming formats
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
(function (HTMLMediaElement) {
|
||||
'use strict';
|
||||
|
||||
const HTMLMediaElement_proto = HTMLMediaElement.prototype;
|
||||
const real_play = HTMLMediaElement_proto.play;
|
||||
const HTMLMediaElementPrototype = HTMLMediaElement.prototype;
|
||||
const realPlay = HTMLMediaElementPrototype.play;
|
||||
|
||||
HTMLMediaElement_proto.play = function () {
|
||||
HTMLMediaElementPrototype.play = function () {
|
||||
try {
|
||||
const promise = real_play.apply(this, arguments);
|
||||
const promise = realPlay.apply(this, arguments);
|
||||
|
||||
if (typeof promise?.then === 'function') {
|
||||
return promise;
|
||||
|
||||
Reference in New Issue
Block a user