mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-17 07:27:36 -07:00
21 lines
381 B
TypeScript
21 lines
381 B
TypeScript
declare const fuckAdBlock: any;
|
|
|
|
export default ($root: any) => {
|
|
require('fuckadblock');
|
|
|
|
function adBlockDetected() {
|
|
$root.$dialog({
|
|
title: $root.$t('@.adblock.detected'),
|
|
text: $root.$t('@.adblock.warning'),
|
|
actins: [{
|
|
text: 'OK'
|
|
}]
|
|
});
|
|
}
|
|
|
|
if (fuckAdBlock === undefined) {
|
|
adBlockDetected();
|
|
} else {
|
|
fuckAdBlock.onDetected(adBlockDetected);
|
|
}
|
|
};
|