2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-05 23:53:27 +00:00

Converted all modules from CommonJS to ES6

This commit is contained in:
n1474335
2017-03-23 17:52:20 +00:00
parent 0f2a5014be
commit 131b3a83c1
75 changed files with 395 additions and 282 deletions

View File

@@ -4,10 +4,10 @@
* @license Apache-2.0
*/
var HTMLApp = require("./HTMLApp.js"),
Categories = require("../core/config/Categories.js"),
OperationConfig = require("../core/config/OperationConfig.js"),
CanvasComponents = require("../core/lib/canvascomponents.js");
import App from "./App.js";
import Categories from "../core/config/Categories.js";
import OperationConfig from "../core/config/OperationConfig.js";
import CanvasComponents from "../core/lib/canvascomponents.js";
/**
* Main function used to build the CyberChef web app.
@@ -38,7 +38,7 @@ var main = function() {
};
document.removeEventListener("DOMContentLoaded", main, false);
window.app = new HTMLApp(Categories, OperationConfig, defaultFavourites, defaultOptions);
window.app = new App(Categories, OperationConfig, defaultFavourites, defaultOptions);
window.app.setup();
};