mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-25 00:28:20 -05:00
Merge pull request #7 from tmickel/lobby-settings-disable-switch
Add config for disabling the lobby settings page
This commit is contained in:
commit
5a36ea263b
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