|
@@ -87,6 +87,7 @@ class App {
|
|
'luminaryGlobalHB': false,
|
|
'luminaryGlobalHB': false,
|
|
'dbhost': window.location.origin + '/gun', // 'https://' + window.location.hostname + ':8080/gun', //'http://localhost:8080/gun',
|
|
'dbhost': window.location.origin + '/gun', // 'https://' + window.location.hostname + ':8080/gun', //'http://localhost:8080/gun',
|
|
'reflector': 'https://' + window.location.hostname + ':3002',
|
|
'reflector': 'https://' + window.location.hostname + ':3002',
|
|
|
|
+ 'webrtc': false,
|
|
'language': 'en'
|
|
'language': 'en'
|
|
}
|
|
}
|
|
localStorage.setItem('lcs_config', JSON.stringify(config));
|
|
localStorage.setItem('lcs_config', JSON.stringify(config));
|
|
@@ -107,9 +108,16 @@ class App {
|
|
localStorage.setItem('lcs_config', JSON.stringify(config));
|
|
localStorage.setItem('lcs_config', JSON.stringify(config));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!config.webrtc) {
|
|
|
|
+ config.webrtc = false;
|
|
|
|
+ localStorage.setItem('lcs_config', JSON.stringify(config));
|
|
|
|
+ }
|
|
|
|
+
|
|
this.config = config;
|
|
this.config = config;
|
|
|
|
|
|
- const opt = { peers: this.dbHost, localStorage: false, RTCPeerConnection: false, axe: false }
|
|
|
|
|
|
+ let webrtcConnection = this.config.webrtc;
|
|
|
|
+
|
|
|
|
+ const opt = { peers: this.dbHost, localStorage: false, RTCPeerConnection: webrtcConnection, axe: false }
|
|
//const opt = { peers: this.dbHost, localStorage: false, until: 1000, chunk: 5, axe: false} //until: 5000, chunk: 5
|
|
//const opt = { peers: this.dbHost, localStorage: false, until: 1000, chunk: 5, axe: false} //until: 5000, chunk: 5
|
|
//opt.store = RindexedDB(opt);
|
|
//opt.store = RindexedDB(opt);
|
|
this.db = Gun(opt);
|
|
this.db = Gun(opt);
|
|
@@ -197,6 +205,12 @@ class App {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ get isWebRTC() {
|
|
|
|
+
|
|
|
|
+ return this.config.webrtc;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
get luminaryGlobalHBPath() {
|
|
get luminaryGlobalHBPath() {
|
|
|
|
|
|
var res = "";
|
|
var res = "";
|