summaryrefslogtreecommitdiff
path: root/public/js/common.js
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-03-04 23:17:35 +0800
committerCheng-Han, Wu2016-03-04 23:17:35 +0800
commit845ef9bad6b9f5ff471b62505f9e39300297a3a4 (patch)
tree8ee0bcd9a2b0ba22330d7ca4015c681bf4ad2bcf /public/js/common.js
parentc183002c14397c8b6e1ef26c1367197d987d7c62 (diff)
Support export to and import from Google Drive
Diffstat (limited to 'public/js/common.js')
-rw-r--r--public/js/common.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/js/common.js b/public/js/common.js
index e84bc169..799c9581 100644
--- a/public/js/common.js
+++ b/public/js/common.js
@@ -2,6 +2,9 @@
var domain = 'change this'; // domain name
var urlpath = ''; // sub url path, like: www.example.com/<urlpath>
+var GOOGLE_API_KEY = 'change this';
+var GOOGLE_CLIENT_ID = 'change this';
+
var port = window.location.port;
var serverurl = window.location.protocol + '//' + domain + (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];