mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-22 10:38:04 +09:00
5072b53a94
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
22 lines
410 B
TypeScript
22 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);
|
|
}
|
|
};
|