✌️
This commit is contained in:
parent
a5ece57e3d
commit
4c955557bf
3 changed files with 19 additions and 20 deletions
18
src/web/app/desktop/scripts/fuck-ad-block.js
Normal file
18
src/web/app/desktop/scripts/fuck-ad-block.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
require('fuckadblock');
|
||||
const dialog = require('./dialog');
|
||||
|
||||
module.exports = () => {
|
||||
if (fuckAdBlock === undefined) {
|
||||
adBlockDetected();
|
||||
} else {
|
||||
fuckAdBlock.onDetected(adBlockDetected);
|
||||
}
|
||||
};
|
||||
|
||||
function adBlockDetected() {
|
||||
dialog('<i class="fa fa-exclamation-triangle"></i>広告ブロッカーを無効にしてください',
|
||||
'<strong>Misskeyは広告を掲載していません</strong>が、広告をブロックする機能が有効だと一部の機能が利用できなかったり、不具合が発生する場合があります。',
|
||||
[{
|
||||
text: 'OK'
|
||||
}]);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue