leanote 强制使用https

This commit is contained in:
life
2015-10-17 11:22:11 +08:00
parent 7bf6930c89
commit c09b76fd0b
5 changed files with 20 additions and 12 deletions

8
node_modules/evt.js generated vendored
View File

@@ -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() {