The production loader has special logic for advanced and raw modes

This commit is contained in:
Tim Schaub
2013-09-20 15:29:29 +01:00
parent 8a0809c673
commit 6c2e5f6eca

View File

@@ -7,10 +7,10 @@
select = document.createElement('select'), select = document.createElement('select'),
possibleModes = { possibleModes = {
'raw' : 'Development', 'raw' : 'Development',
'compiled': 'Production' 'advanced': 'Production'
}, },
urlMode = window.location.href.match(/mode=([a-z0-9\-]+)\&?/i), urlMode = window.location.href.match(/mode=([a-z0-9\-]+)\&?/i),
curMode = urlMode ? urlMode[1] : 'compiled', curMode = urlMode ? urlMode[1] : 'advanced',
option, option,
modeIdx, modeIdx,
mode, mode,