-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmultisynq-client.js
More file actions
52 lines (46 loc) · 892 Bytes
/
multisynq-client.js
File metadata and controls
52 lines (46 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import {
Model,
View,
Session,
Data,
Constants,
App,
VERSION,
} from "./client/teatime";
console.log(`Multisynq ${VERSION}`);
export {
Model,
View,
Session,
Data,
Constants,
App,
VERSION,
}
const Multisynq = {
Model,
View,
Session,
Data,
Constants,
App,
VERSION,
};
Model.Multisynq = Multisynq;
View.Multisynq = Multisynq;
// hook for future browser devtools
if (typeof __MULTISYNQ_DEVTOOLS__ !== 'undefined') {
__MULTISYNQ_DEVTOOLS__.dispatchEvent(new CustomEvent('load', {
detail: {
version: VERSION,
lib: Multisynq,
}
}));
}
if (typeof globalThis !== 'undefined') {
if (globalThis.__MULTISYNQ__) {
console.warn( 'WARNING: Multiple instances of Multisynq being imported.' );
} else {
globalThis.__MULTISYNQ__ = VERSION;
}
}