mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-25 20:18:28 +09:00
22 lines
403 B
TypeScript
22 lines
403 B
TypeScript
declare const fuckAdBlock: any;
|
|
|
|
export default (os) => {
|
|
require('fuckadblock');
|
|
|
|
function adBlockDetected() {
|
|
os.apis.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);
|
|
}
|
|
};
|