mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-25 00:28:20 -05:00
Add config for disabling the lobby settings page
In some editions we may not have completed translations. For these, the settings page can be hidden.
This commit is contained in:
parent
ef09a72724
commit
9f45c2f7a8
2 changed files with 7 additions and 1 deletions
|
@ -22,5 +22,6 @@
|
|||
"supportedLocales": {
|
||||
"English": "en",
|
||||
"Español": "es"
|
||||
}
|
||||
},
|
||||
"settingsPageDisabled": false
|
||||
}
|
||||
|
|
|
@ -40,6 +40,11 @@ export default class Lobby {
|
|||
ScratchAudio.addSound('sounds/', 'cut.wav', ScratchAudio.uiSounds);
|
||||
ScratchAudio.init();
|
||||
Lobby.setPage(place ? place : 'home');
|
||||
|
||||
if (window.Settings.settingsPageDisabled) {
|
||||
gn('settings').style.visibility = 'hidden';
|
||||
}
|
||||
|
||||
gn('hometab').ontouchstart = function () {
|
||||
if (gn('hometab').className != 'home on') {
|
||||
Lobby.setPage('home');
|
||||
|
|
Loading…
Reference in a new issue