mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-26 15:36:44 -06: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);
|
|
}
|
|
};
|