Skip to content

Commit b66fc04

Browse files
committed
handle case where required system properties are not set by informing user
1 parent 3026671 commit b66fc04

File tree

1 file changed

+4
-0
lines changed
  • src/main/webapp/scripts/externalTinymcePlugins/googledrive

1 file changed

+4
-0
lines changed

src/main/webapp/scripts/externalTinymcePlugins/googledrive/plugin.min.js

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ via scripts imported in `header.jsp`.
88
let accessToken;
99

1010
async function insertFromGoogleDrive() {
11+
if(!gdClientId || !gdScope){
12+
apprise("Missing required system properties for google drive "
13+
+ "integration. Please speak to your rspace administrator");
14+
}
1115
await gapi.load('client:picker');
1216

1317
const client = await google.accounts.oauth2.initTokenClient({

0 commit comments

Comments
 (0)