mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Removed PathJS dependency; refactored routing
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
var App = App || {};
|
||||
|
||||
App.Bootstrap = function(auth, router, util, promise, presenterManager) {
|
||||
App.Bootstrap = function(auth, router, promise, presenterManager) {
|
||||
|
||||
promise.wait(
|
||||
auth.tryLoginFromCookie(),
|
||||
@ -25,7 +25,7 @@ App.Bootstrap = function(auth, router, util, promise, presenterManager) {
|
||||
|
||||
};
|
||||
|
||||
App.DI.registerSingleton('bootstrap', ['auth', 'router', 'util', 'promise', 'presenterManager'], App.Bootstrap);
|
||||
App.DI.registerSingleton('bootstrap', ['auth', 'router', 'promise', 'presenterManager'], App.Bootstrap);
|
||||
App.DI.registerManual('jQuery', function() { return window.$; });
|
||||
App.DI.registerManual('pathJs', function() { return window.pathjs; });
|
||||
App.DI.registerManual('_', function() { return window._; });
|
||||
|
Reference in New Issue
Block a user