summaryrefslogtreecommitdiff
path: root/public/js/common.js
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-10 16:25:51 +0800
committerWu Cheng-Han2016-10-10 16:25:51 +0800
commitbf4c6d021c353f9f6779ba813dab8d44b17addbf (patch)
tree6c762ffcac05c34b1f6601eb65b71af705c88b84 /public/js/common.js
parent917537ddbfcf21b93ceaadb89fd356e93565d0f9 (diff)
Extract config.js from common.js to make client setting file clean and also make upgrade easier
Diffstat (limited to '')
-rw-r--r--public/js/common.js (renamed from public/js/common.js.example)10
1 files changed, 0 insertions, 10 deletions
diff --git a/public/js/common.js.example b/public/js/common.js
index 11c32acc..a14e6fc9 100644
--- a/public/js/common.js.example
+++ b/public/js/common.js
@@ -1,14 +1,4 @@
//common
-var domain = ''; // domain name
-var urlpath = ''; // sub url path, like: www.example.com/<urlpath>
-//settings
-var debug = false;
-
-var GOOGLE_API_KEY = '';
-var GOOGLE_CLIENT_ID = '';
-
-var DROPBOX_APP_KEY = '';
-
var port = window.location.port;
var serverurl = window.location.protocol + '//' + (domain ? domain : window.location.hostname) + (port ? ':' + port : '') + (urlpath ? '/' + urlpath : '');
var noteid = urlpath ? window.location.pathname.slice(urlpath.length + 1, window.location.pathname.length).split('/')[1] : window.location.pathname.split('/')[1];