File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11//common
2- var domain = 'change this ' ; // domain name
2+ var domain = '' ; // domain name
33var urlpath = '' ; // sub url path, like: www.example.com/<urlpath>
44//settings
55var debug = false ;
@@ -8,7 +8,7 @@ var GOOGLE_API_KEY = 'change this';
88var GOOGLE_CLIENT_ID = 'change this' ;
99
1010var port = window . location . port ;
11- var serverurl = window . location . protocol + '//' + domain + ( port ? ':' + port : '' ) + ( urlpath ? '/' + urlpath : '' ) ;
11+ var serverurl = window . location . protocol + '//' + ( domain ? domain : window . location . hostname ) + ( port ? ':' + port : '' ) + ( urlpath ? '/' + urlpath : '' ) ;
1212var noteid = urlpath ? window . location . pathname . slice ( urlpath . length + 1 , window . location . pathname . length ) . split ( '/' ) [ 1 ] : window . location . pathname . split ( '/' ) [ 1 ] ;
1313var noteurl = serverurl + '/' + noteid ;
1414
You can’t perform that action at this time.
0 commit comments