diff options
author | Yukai Huang | 2016-10-13 16:41:20 +0800 |
---|---|---|
committer | Yukai Huang | 2016-10-13 16:41:20 +0800 |
commit | ae3e1b972bb4884ebd910ceb9ced1f206ccd9007 (patch) | |
tree | f08416a72ca59d52a51f4329b50379d67147b868 /public/js/common.js | |
parent | 747502e694efb5131e1f589adcb608580347e1e0 (diff) |
Fix spellcheck
* also fix spaces width
Diffstat (limited to 'public/js/common.js')
-rw-r--r-- | public/js/common.js | 2 |
1 files changed, 1 insertions, 1 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; |