2018-02-21 02:53:34 +09:00
|
|
|
declare const fuckAdBlock: any;
|
|
|
|
|
2018-11-09 16:00:29 +09:00
|
|
|
export default ($root: any) => {
|
2018-09-24 08:00:10 +09:00
|
|
|
require('fuckadblock');
|
|
|
|
|
2018-02-21 02:53:34 +09:00
|
|
|
function adBlockDetected() {
|
2018-11-14 16:30:58 +09:00
|
|
|
$root.alert({
|
2018-11-11 19:15:08 +09:00
|
|
|
title: $root.$t('@.adblock.detected'),
|
2018-11-14 16:30:58 +09:00
|
|
|
text: $root.$t('@.adblock.warning')
|
2018-02-21 02:53:34 +09:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
if (fuckAdBlock === undefined) {
|
|
|
|
adBlockDetected();
|
|
|
|
} else {
|
|
|
|
fuckAdBlock.onDetected(adBlockDetected);
|
|
|
|
}
|
|
|
|
};
|