ultrawidify/src/ext/uw.js

24 lines
641 B
JavaScript
Raw Normal View History

/**
* 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.
*/
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
);
}
const main = new UWContent();
main.init();