mirror of https://github.com/status-im/codimd.git
Merge client index.js settings to common.js
This commit is contained in:
parent
cf003c3299
commit
7e69bfc40b
|
@ -1,6 +1,8 @@
|
||||||
//common
|
//common
|
||||||
var domain = 'change this'; // domain name
|
var domain = 'change this'; // domain name
|
||||||
var urlpath = ''; // sub url path, like: www.example.com/<urlpath>
|
var urlpath = ''; // sub url path, like: www.example.com/<urlpath>
|
||||||
|
//settings
|
||||||
|
var debug = false;
|
||||||
|
|
||||||
var GOOGLE_API_KEY = 'change this';
|
var GOOGLE_API_KEY = 'change this';
|
||||||
var GOOGLE_CLIENT_ID = 'change this';
|
var GOOGLE_CLIENT_ID = 'change this';
|
||||||
|
@ -10,6 +12,8 @@ var serverurl = window.location.protocol + '//' + domain + (port ? ':' + port :
|
||||||
var noteid = urlpath ? window.location.pathname.slice(urlpath.length + 1, window.location.pathname.length).split('/')[1] : window.location.pathname.split('/')[1];
|
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;
|
var noteurl = serverurl + '/' + noteid;
|
||||||
|
|
||||||
|
var version = '0.3.4';
|
||||||
|
|
||||||
var checkAuth = false;
|
var checkAuth = false;
|
||||||
var profile = null;
|
var profile = null;
|
||||||
var lastLoginState = getLoginState();
|
var lastLoginState = getLoginState();
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
//constant vars
|
|
||||||
//settings
|
|
||||||
var debug = false;
|
|
||||||
var version = '0.3.4';
|
|
||||||
|
|
||||||
var defaultTextHeight = 20;
|
var defaultTextHeight = 20;
|
||||||
var viewportMargin = 20;
|
var viewportMargin = 20;
|
||||||
var defaultExtraKeys = {
|
var defaultExtraKeys = {
|
||||||
|
|
Loading…
Reference in New Issue