Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
Hubs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ar-noc
Hubs
Commits
4815c3cc
Commit
4815c3cc
authored
6 years ago
by
Greg Fodor
Browse files
Options
Downloads
Patches
Plain Diff
Add polling loop for build version
parent
94758f29
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/assets/translations.data.json
+1
-0
1 addition, 0 deletions
src/assets/translations.data.json
src/hub.js
+7
-0
7 additions, 0 deletions
src/hub.js
webpack.config.js
+2
-1
2 additions, 1 deletion
webpack.config.js
with
10 additions
and
1 deletion
src/assets/translations.data.json
+
1
−
0
View file @
4815c3cc
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
"exit.subtitle.closed"
:
"This room is no longer available."
,
"exit.subtitle.closed"
:
"This room is no longer available."
,
"exit.subtitle.full"
:
"This room is full, please try again later."
,
"exit.subtitle.full"
:
"This room is full, please try again later."
,
"exit.subtitle.connect_error"
:
"Unable to connect to this room, please try again later."
,
"exit.subtitle.connect_error"
:
"Unable to connect to this room, please try again later."
,
"exit.subtitle.version_mismatch"
:
"The version you deployed is not available yet. Your browser will refresh in 5 seconds."
,
"autoexit.title"
:
"Auto-ending session in "
,
"autoexit.title"
:
"Auto-ending session in "
,
"autoexit.title_units"
:
" seconds"
,
"autoexit.title_units"
:
" seconds"
,
"autoexit.subtitle"
:
"You have started another session."
,
"autoexit.subtitle"
:
"You have started another session."
,
...
...
This diff is collapsed.
Click to expand it.
src/hub.js
+
7
−
0
View file @
4815c3cc
...
@@ -432,6 +432,13 @@ const onReady = async () => {
...
@@ -432,6 +432,13 @@ const onReady = async () => {
return
;
return
;
}
}
if
(
qs
.
required_version
&&
qs
.
required_version
!==
process
.
env
.
BUILD_VERSION
)
{
remountUI
({
roomUnavailableReason
:
"
version_mismatch
"
});
setTimeout
(()
=>
document
.
location
.
reload
(),
5000
);
exitScene
();
return
;
}
getAvailableVREntryTypes
().
then
(
availableVREntryTypes
=>
{
getAvailableVREntryTypes
().
then
(
availableVREntryTypes
=>
{
if
(
availableVREntryTypes
.
gearvr
===
VR_DEVICE_AVAILABILITY
.
yes
)
{
if
(
availableVREntryTypes
.
gearvr
===
VR_DEVICE_AVAILABILITY
.
yes
)
{
remountUI
({
availableVREntryTypes
,
forcedVREntryType
:
"
gearvr
"
});
remountUI
({
availableVREntryTypes
,
forcedVREntryType
:
"
gearvr
"
});
...
...
This diff is collapsed.
Click to expand it.
webpack.config.js
+
2
−
1
View file @
4815c3cc
...
@@ -266,7 +266,8 @@ const config = {
...
@@ -266,7 +266,8 @@ const config = {
NODE_ENV
:
process
.
env
.
NODE_ENV
,
NODE_ENV
:
process
.
env
.
NODE_ENV
,
JANUS_SERVER
:
process
.
env
.
JANUS_SERVER
,
JANUS_SERVER
:
process
.
env
.
JANUS_SERVER
,
DEV_RETICULUM_SERVER
:
process
.
env
.
DEV_RETICULUM_SERVER
,
DEV_RETICULUM_SERVER
:
process
.
env
.
DEV_RETICULUM_SERVER
,
ASSET_BUNDLE_SERVER
:
process
.
env
.
ASSET_BUNDLE_SERVER
ASSET_BUNDLE_SERVER
:
process
.
env
.
ASSET_BUNDLE_SERVER
,
BUILD_VERSION
:
process
.
env
.
BUILD_VERSION
})
})
})
})
]
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment