mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Proxied 'lib/auth' to 'core/auth' for the iPad which can't be updated so quickly.
This commit is contained in:
parent
f9b239ded7
commit
43ac0e8572
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ module.exports = ModuleLoader = class ModuleLoader extends CocoClass
|
|||
wrapped = _.wrap window.require, (func, name, loaderPath) ->
|
||||
# vendor libraries aren't actually wrapped with common.js, so short circuit those requires
|
||||
return {} if _.string.startsWith(name, 'vendor/')
|
||||
name = 'core/auth' if name is 'lib/auth' # proxy for iPad until it's been updated to use the new, refactored location. TODO: remove this
|
||||
return func(name, loaderPath)
|
||||
_.extend wrapped, window.require # for functions like 'list'
|
||||
window.require = wrapped
|
||||
|
|
Loading…
Reference in a new issue