summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorYukai Huang2016-10-13 16:41:20 +0800
committerYukai Huang2016-10-13 16:41:20 +0800
commitae3e1b972bb4884ebd910ceb9ced1f206ccd9007 (patch)
treef08416a72ca59d52a51f4329b50379d67147b868 /public
parent747502e694efb5131e1f589adcb608580347e1e0 (diff)
Fix spellcheck
* also fix spaces width
Diffstat (limited to 'public')
-rw-r--r--public/js/common.js2
-rw-r--r--public/js/cover.js1
-rw-r--r--public/js/extra.js1
-rw-r--r--public/js/history.js1
-rw-r--r--public/js/index.js1
-rw-r--r--public/js/slide.js1
6 files changed, 1 insertions, 6 deletions
diff --git a/public/js/common.js b/public/js/common.js
index 19455f3d..9f81a97d 100644
--- a/public/js/common.js
+++ b/public/js/common.js
@@ -8,7 +8,7 @@ var DROPBOX_APP_KEY = config.DROPBOX_APP_KEY;
//common
var port = window.location.port;
-var serverurl = window.location.protocol + '//' + (domain ? domain : window.location.hostname) + (port ? ':' + port : '') + (urlpath ? '/' + urlpath : '');
+window.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];
var noteurl = serverurl + '/' + noteid;
diff --git a/public/js/cover.js b/public/js/cover.js
index 245127d1..3dd4de09 100644
--- a/public/js/cover.js
+++ b/public/js/cover.js
@@ -1,7 +1,6 @@
var common = require('./common');
var checkIfAuth = common.checkIfAuth;
var urlpath = common.urlpath;
-var serverurl = common.serverurl;
var resetCheckAuth = common.resetCheckAuth;
var getLoginState = common.getLoginState;
var clearLoginState = common.clearLoginState;
diff --git a/public/js/extra.js b/public/js/extra.js
index d853bf93..7cae068e 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -544,7 +544,6 @@ function exportToRawHTML(view) {
}
var common = require('./common.js');
-var serverurl = common.serverurl;
//extract markdown body to html and compile to template
function exportToHTML(view) {
var title = renderTitle(ui.area.markdown);
diff --git a/public/js/history.js b/public/js/history.js
index 8593bbcf..d924eec1 100644
--- a/public/js/history.js
+++ b/public/js/history.js
@@ -3,7 +3,6 @@ var store = require('store');
var common = require('./common');
var checkIfAuth = common.checkIfAuth;
var urlpath = common.urlpath;
-var serverurl = common.serverurl;
var getLoginState = common.getLoginState;
var extra = require('./extra');
diff --git a/public/js/index.js b/public/js/index.js
index de0ba0ba..5246f949 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -21,7 +21,6 @@ var urlpath = common.urlpath;
var noteid = common.noteid;
var debug = common.debug;
var version = common.version;
-var serverurl = common.serverurl;
var GOOGLE_API_KEY = common.GOOGLE_API_KEY;
var GOOGLE_CLIENT_ID = common.GOOGLE_CLIENT_ID;
var DROPBOX_APP_KEY = common.DROPBOX_APP_KEY;
diff --git a/public/js/slide.js b/public/js/slide.js
index d90fd436..2536c602 100644
--- a/public/js/slide.js
+++ b/public/js/slide.js
@@ -14,7 +14,6 @@ var urlpath = commonModule.urlpath;
var noteid = commonModule.noteid;
var debug = commonModule.debug;
var version = commonModule.version;
-var serverurl = commonModule.serverurl;
var GOOGLE_API_KEY = commonModule.GOOGLE_API_KEY;
var GOOGLE_CLIENT_ID = commonModule.GOOGLE_CLIENT_ID;
var DROPBOX_APP_KEY = commonModule.DROPBOX_APP_KEY;