ブロッカーへの警告はログイン時のみ表示するように

This commit is contained in:
syuilo 2018-09-24 08:00:10 +09:00
parent cba0dd5e17
commit d93f76c1af
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 8 additions and 6 deletions

View file

@ -1,8 +1,8 @@
require('fuckadblock');
declare const fuckAdBlock: any;
export default (os) => {
require('fuckadblock');
function adBlockDetected() {
os.apis.dialog({
title: '%fa:exclamation-triangle%%i18n:common.adblock.detected%',

View file

@ -87,10 +87,12 @@ init(async (launch) => {
updateBanner: updateBanner(os)
}));
if (os.store.getters.isSignedIn) {
/**
* Fuck AD Block
*/
fuckAdBlock(os);
}
/**
* Init Notification