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