jormungandr-bite/src/client/app/common/scripts/fuck-ad-block.ts

19 lines
344 B
TypeScript
Raw Normal View History

2018-02-20 10:53:34 -07:00
declare const fuckAdBlock: any;
export default ($root: any) => {
require('fuckadblock');
2018-02-20 10:53:34 -07:00
function adBlockDetected() {
2018-12-01 23:28:52 -07:00
$root.dialog({
2018-11-11 03:15:08 -07:00
title: $root.$t('@.adblock.detected'),
2018-11-14 00:30:58 -07:00
text: $root.$t('@.adblock.warning')
2018-02-20 10:53:34 -07:00
});
}
if (fuckAdBlock === undefined) {
adBlockDetected();
} else {
fuckAdBlock.onDetected(adBlockDetected);
}
};