mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-16 12:46:42 +01:00
18 lines
344 B
TypeScript
18 lines
344 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')
|
|
});
|
|
}
|
|
|
|
if (fuckAdBlock === undefined) {
|
|
adBlockDetected();
|
|
} else {
|
|
fuckAdBlock.onDetected(adBlockDetected);
|
|
}
|
|
};
|