Fix inconsistent naming formats

This commit is contained in:
Bill Thornton
2024-10-17 01:23:38 -04:00
parent f9092e0678
commit fdccb5c915
7 changed files with 41 additions and 39 deletions
+4 -4
View File
@@ -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;