Skip to content

Commit a189343

Browse files
committed
✏️ [gdrive] 再読み込み時に1回クラッシュするのを修正
1 parent fe7b7fb commit a189343

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/miraktest-gdrive/GDriveRenderer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ export const GDriveRenderer: InitPlugin["renderer"] = ({
436436
}
437437
}, [])
438438
useEffect(() => {
439-
if (isSignedIn && accessToken) {
439+
if (isSignedIn && accessToken && driveClient) {
440440
// @ts-expect-error miss type
441441
gapi.auth.setToken({ access_token: accessToken })
442442
setIsReady(true)

src/miraktest-gdrive/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const GDRIVE_META = {
44
id: GDRIVE_ID,
55
name: "Google Drive",
66
author: "ci7lus",
7-
version: "0.0.3",
7+
version: "0.0.4",
88
description: "Google Driveにある動画ファイルの再生を行うプラグインです。",
99
authorUrl: "https://github.com/ci7lus",
1010
url: "https://github.com/ci7lus/miraktest-plugins/tree/master/src/miraktest-gdrive",

0 commit comments

Comments
 (0)