godprotocol 1.2.6 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Objects/Manager.js +5 -3
- package/html/create.js +1 -1
- package/package.json +1 -1
package/Objects/Manager.js
CHANGED
|
@@ -329,12 +329,14 @@ class Manager {
|
|
|
329
329
|
if (this.options.server.port)
|
|
330
330
|
this.options.server_domain = `${this.options.server.hostname}:${this.options.server.port}`
|
|
331
331
|
else this.options.server_domain = this.options.hostname
|
|
332
|
-
|
|
333
|
-
let handle = create_server({manager: this, ...this.options.server, app: this.options.app })
|
|
332
|
+
let handle = create_server({manager: this, ...this.options.server, app: this.options.app })
|
|
334
333
|
|
|
334
|
+
this.handler = (req, res)=>{
|
|
335
|
+
|
|
335
336
|
handle(req,res)
|
|
336
337
|
|
|
337
|
-
if (this.options.oracle){
|
|
338
|
+
if (this.options.oracle && !this.served){
|
|
339
|
+
this.served = true
|
|
338
340
|
this.oracle = this.options.oracle;
|
|
339
341
|
this.oracle.set_manager(this)
|
|
340
342
|
}
|
package/html/create.js
CHANGED
|
@@ -24,7 +24,7 @@ const account_id_el = document.getElementById('account_id'), account_password_el
|
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
ftch("/create_account",
|
|
27
|
+
ftch("/create_account", {name, password})
|
|
28
28
|
.then(res=>{
|
|
29
29
|
let accs = sessionStorage.getItem('accounts')
|
|
30
30
|
if (accs) accs = JSON.parse(accs)
|