1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-26 12:38:32 +09:00
misskey/src/client/app/common/scripts/fuck-ad-block.ts

22 lines
403 B
TypeScript
Raw Normal View History

2018-02-21 02:53:34 +09:00
declare const fuckAdBlock: any;
export default (os) => {
require('fuckadblock');
2018-02-21 02:53:34 +09:00
function adBlockDetected() {
os.apis.dialog({
2018-08-02 19:03:31 +09:00
title: '%fa:exclamation-triangle%%i18n:common.adblock.detected%',
text: '%i18n:common.adblock.warning%',
2018-02-21 02:53:34 +09:00
actins: [{
text: 'OK'
}]
});
}
if (fuckAdBlock === undefined) {
adBlockDetected();
} else {
fuckAdBlock.onDetected(adBlockDetected);
}
};