1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
DanieL 2022-11-29 17:32:26 -03:00
parent 072307bdb7
commit 641e1e48e6

View file

@ -70,6 +70,12 @@ if (urlParams.has('debug')) {
isDebuging = false;
}
if(typeof String.prototype.replaceAll === "undefined") {
String.prototype.replaceAll = function(match, replace) {
return this.replace(new RegExp(match, 'g'), () => replace);
}
}
async function setBodyOnline() {
if (isOnline()) {
$('body').removeClass('isOffline');