mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 01:33:09 +02:00
3f79c9ae49
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
21 lines
410 B
TypeScript
21 lines
410 B
TypeScript
declare const fuckAdBlock: any;
|
|
|
|
export default ($root: any) => {
|
|
require('fuckadblock');
|
|
|
|
function adBlockDetected() {
|
|
$root.$dialog({
|
|
title: '%fa:exclamation-triangle%%i18n:common.adblock.detected%',
|
|
text: '%i18n:common.adblock.warning%',
|
|
actins: [{
|
|
text: 'OK'
|
|
}]
|
|
});
|
|
}
|
|
|
|
if (fuckAdBlock === undefined) {
|
|
adBlockDetected();
|
|
} else {
|
|
fuckAdBlock.onDetected(adBlockDetected);
|
|
}
|
|
};
|