2
0
mirror of https://github.com/esiur/esiur-js.git synced 2025-05-06 12:32:58 +00:00
esiur-js/test/test.js
2019-08-07 05:00:25 +03:00

29 lines
498 B
JavaScript

var demo;
import IStore from '../src/Resource/IStore.js';
import wh from '../src/esiur.js';
class MyStore extends IStore
{
}
async function load()
{
window.x = await wh.get("iip://localhost:5001/db/my", {username: "demo", password: "1234"});
console.log(window.x);
}
load();
/*
wh.get("iip://localhost:5001/db/my", {username: "demo", password: "1234"})
.then(x=>{
console.log("connected", x);
window.x = x;
}).catch(x=>{
console.log("error", x);
});
*/