Skip to content

Commit 7e69bfc

Browse files
committed
Merge client index.js settings to common.js
1 parent cf003c3 commit 7e69bfc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

public/js/common.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
//common
22
var domain = 'change this'; // domain name
33
var urlpath = ''; // sub url path, like: www.example.com/<urlpath>
4+
//settings
5+
var debug = false;
46

57
var GOOGLE_API_KEY = 'change this';
68
var GOOGLE_CLIENT_ID = 'change this';
@@ -10,6 +12,8 @@ var serverurl = window.location.protocol + '//' + domain + (port ? ':' + port :
1012
var noteid = urlpath ? window.location.pathname.slice(urlpath.length + 1, window.location.pathname.length).split('/')[1] : window.location.pathname.split('/')[1];
1113
var noteurl = serverurl + '/' + noteid;
1214

15+
var version = '0.3.4';
16+
1317
var checkAuth = false;
1418
var profile = null;
1519
var lastLoginState = getLoginState();

public/js/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
//constant vars
2-
//settings
3-
var debug = false;
4-
var version = '0.3.4';
5-
61
var defaultTextHeight = 20;
72
var viewportMargin = 20;
83
var defaultExtraKeys = {

0 commit comments

Comments
 (0)