From cbe0af52737fe9fd9971b794e5f38aa1f4a89561 Mon Sep 17 00:00:00 2001 From: Moe Alam Date: Sat, 17 Oct 2020 18:40:25 -0700 Subject: [PATCH] make google drive "Get Code" button launch setup tutorial if minimum not set --- libs/uploaders/googleDrive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/uploaders/googleDrive.js b/libs/uploaders/googleDrive.js index 7d50bbe5..8cb9da64 100644 --- a/libs/uploaders/googleDrive.js +++ b/libs/uploaders/googleDrive.js @@ -334,7 +334,7 @@ module.exports = (s,config,lang,app,io) => { { "hidden": true, "fieldType": "btn", - "attribute": `style="margin-bottom:1em" href="javascript:$.get(getApiPrefix() + '/googleDriveOAuthRequest/' + $user.ke,function(data){if(data.ok)window.open(data.authUrl, 'Google Drive Authentication', 'width=800,height=400');})"`, + "attribute": `style="margin-bottom:1em" href="javascript:$.get(getApiPrefix() + '/googleDriveOAuthRequest/' + $user.ke,function(data){window.open(data.ok ? data.authUrl : 'https://hub.shinobi.video/articles/view/oEIDEGXLlzmSsCk', 'Google Drive', 'width=800,height=400');})"`, "class": `btn-success`, "form-group-class": "autosave_googd_input autosave_googd_1", "btnContent": `   ${lang['Get Code']}`,