2021-03-06 03:35:23 +01:00
|
|
|
|
/**
|
2023-01-06 18:23:34 +01:00
|
|
|
|
* NOTE: we cannot get rid of this js file. I tried for 30 seconds and I couldn't get
|
2021-03-06 03:35:23 +01:00
|
|
|
|
* extension to work unless I kept this part of extension out of the ts file.
|
|
|
|
|
|
*/
|
|
|
|
|
|
import UWContent from './UWContent';
|
2020-01-31 01:03:06 +01:00
|
|
|
|
|
2020-12-03 01:05:39 +01:00
|
|
|
|
if(process.env.CHANNEL !== 'stable'){
|
2025-06-17 20:12:28 +02:00
|
|
|
|
|
|
|
|
|
|
let isIframe;
|
2020-03-09 19:41:15 +01:00
|
|
|
|
try {
|
2025-06-17 20:12:28 +02:00
|
|
|
|
isIframe = window.self !== window.top;
|
2020-03-09 19:41:15 +01:00
|
|
|
|
} catch (e) {
|
2025-06-17 20:12:28 +02:00
|
|
|
|
isIframe = true;
|
2020-03-09 19:41:15 +01:00
|
|
|
|
}
|
2025-06-17 20:12:28 +02:00
|
|
|
|
|
|
|
|
|
|
console.warn(
|
|
|
|
|
|
"\n\n\n\n\n\n ——— Sᴛλʀᴛɪɴɢ Uʟᴛʀᴀᴡɪᴅɪꜰʏ ———\n << ʟᴏᴀᴅɪɴɢ ᴍᴀɪɴ ꜰɪʟᴇ >>\n\n\n\n",
|
|
|
|
|
|
"\n - are we in iframe?", isIframe
|
|
|
|
|
|
);
|
2018-01-24 23:15:54 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
2021-03-06 03:35:23 +01:00
|
|
|
|
const main = new UWContent();
|
2018-12-30 23:16:09 +01:00
|
|
|
|
main.init();
|