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