From d93f76c1af1d9d632e834db51cf46c0fc8be5bd4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 24 Sep 2018 08:00:10 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=96=E3=83=AD=E3=83=83=E3=82=AB=E3=83=BC?= =?UTF-8?q?=E3=81=B8=E3=81=AE=E8=AD=A6=E5=91=8A=E3=81=AF=E3=83=AD=E3=82=B0?= =?UTF-8?q?=E3=82=A4=E3=83=B3=E6=99=82=E3=81=AE=E3=81=BF=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/common/scripts/fuck-ad-block.ts | 4 ++-- src/client/app/desktop/script.ts | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/client/app/common/scripts/fuck-ad-block.ts b/src/client/app/common/scripts/fuck-ad-block.ts index ed0904aeb..0c802f164 100644 --- a/src/client/app/common/scripts/fuck-ad-block.ts +++ b/src/client/app/common/scripts/fuck-ad-block.ts @@ -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%', diff --git a/src/client/app/desktop/script.ts b/src/client/app/desktop/script.ts index e32682286..8b184a4aa 100644 --- a/src/client/app/desktop/script.ts +++ b/src/client/app/desktop/script.ts @@ -87,10 +87,12 @@ init(async (launch) => { updateBanner: updateBanner(os) })); - /** - * Fuck AD Block - */ - fuckAdBlock(os); + if (os.store.getters.isSignedIn) { + /** + * Fuck AD Block + */ + fuckAdBlock(os); + } /** * Init Notification