From ebdb1913fde69451d940d863fe74b3358c1a021a Mon Sep 17 00:00:00 2001 From: Brendan Early Date: Fri, 22 May 2020 13:52:04 -0500 Subject: [PATCH] fix #491 --- src/background.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/background.ts b/src/background.ts index d6170ad9..73ccca2d 100644 --- a/src/background.ts +++ b/src/background.ts @@ -260,6 +260,9 @@ function getBackupToken(service: string) { scopes: ["https://www.googleapis.com/auth/drive.file"] }, value => { + if (!value) { + return false; + } localStorage.driveToken = value; chrome.runtime.sendMessage({ action: "drivetoken", value }); return true;