2018-02-20 18:53:34 +01:00
|
|
|
declare const fuckAdBlock: any;
|
|
|
|
|
2018-11-09 08:00:29 +01:00
|
|
|
export default ($root: any) => {
|
2018-09-24 01:00:10 +02:00
|
|
|
require('fuckadblock');
|
|
|
|
|
2018-02-20 18:53:34 +01:00
|
|
|
function adBlockDetected() {
|
2018-11-09 08:00:29 +01:00
|
|
|
$root.$dialog({
|
2018-11-11 11:15:08 +01:00
|
|
|
title: $root.$t('@.adblock.detected'),
|
|
|
|
text: $root.$t('@.adblock.warning'),
|
2018-02-20 18:53:34 +01:00
|
|
|
actins: [{
|
|
|
|
text: 'OK'
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
if (fuckAdBlock === undefined) {
|
|
|
|
adBlockDetected();
|
|
|
|
} else {
|
|
|
|
fuckAdBlock.onDetected(adBlockDetected);
|
|
|
|
}
|
|
|
|
};
|