mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-17 15:37:30 -07:00
21 lines
402 B
TypeScript
21 lines
402 B
TypeScript
require('fuckadblock');
|
|
|
|
declare const fuckAdBlock: any;
|
|
|
|
export default (os) => {
|
|
function adBlockDetected() {
|
|
os.apis.dialog({
|
|
title: '%fa:exclamation-triangle%%i18n:common.adblock.detected%',
|
|
text: '%i18n:common.adblock.warning%',
|
|
actins: [{
|
|
text: 'OK'
|
|
}]
|
|
});
|
|
}
|
|
|
|
if (fuckAdBlock === undefined) {
|
|
adBlockDetected();
|
|
} else {
|
|
fuckAdBlock.onDetected(adBlockDetected);
|
|
}
|
|
};
|