Merge pull request #7 from tmickel/lobby-settings-disable-switch

Add config for disabling the lobby settings page
This commit is contained in:
Tim Mickel 2016-02-03 15:51:44 -05:00
commit 5a36ea263b
2 changed files with 7 additions and 1 deletions

View file

@ -22,5 +22,6 @@
"supportedLocales": {
"English": "en",
"Español": "es"
}
},
"settingsPageDisabled": false
}

View file

@ -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');