2
0
mirror of https://github.com/esiur/esiur-js.git synced 2026-03-18 15:30:38 +00:00
This commit is contained in:
2021-03-10 01:25:20 +03:00
parent ca2b89540a
commit a08519bde8
55 changed files with 4190 additions and 6679 deletions

View File

@@ -6,8 +6,10 @@ import MemoryStore from './Stores/MemoryStore.js';
import IndexedDBStore from './Stores/IndexedDBStore.js';
import IResource from './Resource/IResource.js';
import ResourceProxy from './Proxy/ResourceProxy.js';
import DistributedConnection from './Net/IIP/DistributedConnection.js';
if (window) {
if (typeof window !== 'undefined')
{
window.wh = wh;
window.Structure = Structure;
window.DistributedResource = DistributedResource;
@@ -15,8 +17,9 @@ if (window) {
window.IndexedDBStore = IndexedDBStore;
window.IResource = IResource;
window.ResourceProxy = ResourceProxy;
window.DistributedConnection = DistributedConnection;
}
else if (global)
else if (typeof global !== 'undefined')
{
global.wh = wh;
global.Structure = Structure;
@@ -24,6 +27,7 @@ else if (global)
global.MemoryStore = MemoryStore;
global.IndexedDBStore = IndexedDBStore;
global.IResource = IResource;
global.DistributedConnection = DistributedConnection;
}
export default wh;