mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 15:41:19 +00:00
leanote 强制使用https
This commit is contained in:
8
node_modules/evt.js
generated
vendored
8
node_modules/evt.js
generated
vendored
@@ -12,9 +12,9 @@ if(!fs.existsSync(dataBasePath)) {
|
||||
// dataBasePath = '';
|
||||
|
||||
var Evt = {
|
||||
defaultUrl: 'http://leanote.com',
|
||||
defaultUrl: 'https://leanote.com',
|
||||
|
||||
leanoteUrl: 'http://leanote.com',
|
||||
leanoteUrl: 'https://leanote.com',
|
||||
// leanoteUrl: 'http://localhost:9000',
|
||||
|
||||
setHost: function(host) {
|
||||
@@ -23,6 +23,10 @@ var Evt = {
|
||||
} else {
|
||||
this.leanoteUrl = host;
|
||||
}
|
||||
// leanote服务强制https
|
||||
if (this.leanoteUrl === 'http://leanote.com') {
|
||||
this.leanoteUrl = 'https://leanote.com';
|
||||
}
|
||||
},
|
||||
|
||||
getHost: function() {
|
||||
|
Reference in New Issue
Block a user