diff --git a/src/miraktest-gdrive/GDriveRenderer.tsx b/src/miraktest-gdrive/GDriveRenderer.tsx index a9ffed8..5790245 100644 --- a/src/miraktest-gdrive/GDriveRenderer.tsx +++ b/src/miraktest-gdrive/GDriveRenderer.tsx @@ -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) diff --git a/src/miraktest-gdrive/constants.ts b/src/miraktest-gdrive/constants.ts index d901ad3..0aadeee 100644 --- a/src/miraktest-gdrive/constants.ts +++ b/src/miraktest-gdrive/constants.ts @@ -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",