|
@@ -282,16 +282,16 @@ export class Session extends AREventTarget<SessionEventType>
|
282
|
282
|
if(!Session.isSupported())
|
283
|
283
|
throw new NotSupportedError('You need a browser/device compatible with WebGL2 and WebAssembly in order to experience Augmented Reality with encantar.js');
|
284
|
284
|
|
285
|
|
- // block multiple immersive sessions
|
|
285
|
+ // block multiple sessions when requesting the immersive mode
|
286
|
286
|
if(mode !== 'inline' && Session.count > 0)
|
287
|
|
- throw new IllegalOperationError(`Can't start more than one immersive session`);
|
|
287
|
+ throw new IllegalOperationError(`Can't start multiple sessions, except in inline mode`);
|
288
|
288
|
|
289
|
289
|
// dev build? work-in-progress
|
290
|
290
|
const isStableBuild = /^\d+\.\d+(\.\d+)*$/.test(AR.version);
|
291
|
291
|
if(!isStableBuild) {
|
292
|
292
|
if(!(['localhost', '127.0.0.1', '[::1]', '', 'encantar.dev', 'alemart.github.io'].includes(location.hostname))) {
|
293
|
293
|
if(!(location.hostname.startsWith('192.168.') || location.hostname.startsWith('10.') || /^172\.(1[6-9]|2[0-9]|3[01])\./.test(location.hostname))) {
|
294
|
|
- const message = 'This is a development build (unstable). Do not use it in production.';
|
|
294
|
+ const message = 'This is a development build (unstable). Do not use it in production. Get a stable release at encantar.dev';
|
295
|
295
|
Utils.warning(message);
|
296
|
296
|
if(!confirm(message + '\n\nAre you sure you want to continue?'))
|
297
|
297
|
throw new AccessDeniedError('Aborted');
|