Skip to content

Commit

Permalink
✏️ [gdrive] 再読み込み時に1回クラッシュするのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ci7lus committed Feb 16, 2023
1 parent fe7b7fb commit a189343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/miraktest-gdrive/GDriveRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export const GDriveRenderer: InitPlugin["renderer"] = ({
}
}, [])
useEffect(() => {
if (isSignedIn && accessToken) {
if (isSignedIn && accessToken && driveClient) {
// @ts-expect-error miss type
gapi.auth.setToken({ access_token: accessToken })
setIsReady(true)
Expand Down
2 changes: 1 addition & 1 deletion src/miraktest-gdrive/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const GDRIVE_META = {
id: GDRIVE_ID,
name: "Google Drive",
author: "ci7lus",
version: "0.0.3",
version: "0.0.4",
description: "Google Driveにある動画ファイルの再生を行うプラグインです。",
authorUrl: "https://github.com/ci7lus",
url: "https://github.com/ci7lus/miraktest-plugins/tree/master/src/miraktest-gdrive",
Expand Down

0 comments on commit a189343

Please sign in to comment.