From fac02610cb338811f0e3b46db835bb67a7d52fb2 Mon Sep 17 00:00:00 2001 From: 59naga Date: Mon, 28 Jan 2019 22:04:23 +0900 Subject: [PATCH] =?UTF-8?q?:bug:=20undefined=20writeText=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tweet.vue | 2 +- src/store.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Tweet.vue b/src/components/Tweet.vue index 03201ec..97ee123 100644 --- a/src/components/Tweet.vue +++ b/src/components/Tweet.vue @@ -64,7 +64,7 @@ export default { }), handshaken.origin ) - } else if (navigator.permissions) { + } else if (navigator.permissions && navigator.clipboard && navigator.clipboard.writeText) { await navigator.clipboard.writeText(copyText) } else { await copy(copyText) diff --git a/src/store.js b/src/store.js index 534a15e..1aeae18 100644 --- a/src/store.js +++ b/src/store.js @@ -8,7 +8,7 @@ import isMobile from 'is-mobile' import Visibility from 'visibilityjs' const jsonBossesUrl = 'https://unpkg.com/gbf-data/dist/raid.json' -const gbfRaidServerUrl = 'https://v157-7-52-20.z1d20.static.cnode.jp/' +const gbfRaidServerUrl = 'http://v157-7-52-20.z1d20.static.cnode.jp/' function fetchCache(gbfRaidServer) { return new Promise((resolve, reject) => {