]> BookStack Code Mirror - bookstack/blobdiff - resources/js/app.js
Search: Prevented negated terms filling in UI inputs
[bookstack] / resources / js / app.js
index 812a451f2333d6206473cff03be3dbefae8e785e..7f4bbe54d639e58db5811a4f3a0b3c84265517b9 100644 (file)
@@ -1,9 +1,12 @@
 import {EventManager} from './services/events.ts';
-import * as httpInstance from './services/http';
+import {HttpManager} from './services/http.ts';
 import Translations from './services/translations';
 import * as componentMap from './components';
 import {ComponentStore} from './services/components.ts';
 
+// eslint-disable-next-line no-underscore-dangle
+window.__DEV__ = false;
+
 // Url retrieval function
 window.baseUrl = function baseUrl(path) {
     let targetPath = path;
@@ -20,7 +23,7 @@ window.importVersioned = function importVersioned(moduleName) {
 };
 
 // Set events and http services on window
-window.$http = httpInstance;
+window.$http = new HttpManager();
 window.$events = new EventManager();
 
 // Translation setup