summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js')
-rw-r--r--public/js/common.js (renamed from public/js/common.js.example)10
-rw-r--r--public/js/config.js.example10
2 files changed, 10 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];
diff --git a/public/js/config.js.example b/public/js/config.js.example
new file mode 100644
index 00000000..197d18f2
--- /dev/null
+++ b/public/js/config.js.example
@@ -0,0 +1,10 @@
+//config
+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 = ''; \ No newline at end of file