core: problem hackable check (#427)

This commit is contained in:
panda authored and GitHub committed 2022-09-07 14:20:55 +08:00
1 parent b34ed2d5a2
commit 25444f69f0
4 files changed
+4 -2

No files matched your search

+1
View File
@@ -28,6 +28,7 @@ export default class Hydro {
this.config.cookie = this.config.cookie || '';
this.config.last_update_at = this.config.last_update_at || 0;
if (!this.config.server_url.startsWith('http')) this.config.server_url = `http://${this.config.server_url}`;
if (!this.config.server_url.endsWith('/')) this.config.server_url = `${this.config.server_url}/`;
this.getLang = this.getLang.bind(this);
}