Remove some code that was only needed cos old edge

This commit is contained in:
Tamius Han 2021-04-12 20:54:42 +02:00
parent 0edd82479e
commit 965a48c086

View File

@ -2,9 +2,7 @@
* NOTE: we cannot get rid of this js file. I tried for 30 seconds and I couldn't get * NOTE: we cannot get rid of this js file. I tried for 30 seconds and I couldn't get
* extension to work unless I kept this part of extension out of the ts file. * extension to work unless I kept this part of extension out of the ts file.
*/ */
import UWContent from './UWContent'; import UWContent from './UWContent';
import BrowserDetect from './conf/BrowserDetect';
if(process.env.CHANNEL !== 'stable'){ if(process.env.CHANNEL !== 'stable'){
console.warn("\n\n\n\n\n\n ——— Sᴛλʀᴛɪɴɢ Uʟᴛʀᴀɪɪʏ ———\n << ʟᴏᴀᴅɪɴɢ ᴍᴀɪɴ ꜰɪʟᴇ >>\n\n\n\n"); console.warn("\n\n\n\n\n\n ——— Sᴛλʀᴛɪɴɢ Uʟᴛʀᴀɪɪʏ ———\n << ʟᴏᴀᴅɪɴɢ ᴍᴀɪɴ ꜰɪʟᴇ >>\n\n\n\n");
@ -20,9 +18,5 @@ if(process.env.CHANNEL !== 'stable'){
} }
} }
if (BrowserDetect.edge) {
HTMLCollection.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator];
}
const main = new UWContent(); const main = new UWContent();
main.init(); main.init();