1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-30 22:48:27 +09:00
MisskeyIO/src/client/app/common/scripts/fuck-ad-block.ts
2018-12-02 15:28:52 +09:00

19 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);
}
};