Stop loading bundles.json
Stop application from requesting bundles.json at first load. This was confusing to some external developers who would see an error in the log and not know the cause.
This commit is contained in:
@@ -25,7 +25,6 @@
|
|||||||
*/
|
*/
|
||||||
define({
|
define({
|
||||||
MODULE_NAME: "OpenMCTWeb",
|
MODULE_NAME: "OpenMCTWeb",
|
||||||
BUNDLE_LISTING_FILE: "bundles.json",
|
|
||||||
BUNDLE_FILE: "bundle.json",
|
BUNDLE_FILE: "bundle.json",
|
||||||
SEPARATOR: "/",
|
SEPARATOR: "/",
|
||||||
EXTENSION_SUFFIX: "[]",
|
EXTENSION_SUFFIX: "[]",
|
||||||
|
|||||||
@@ -61,8 +61,8 @@ define(
|
|||||||
* @param bundleList
|
* @param bundleList
|
||||||
* @returns {*}
|
* @returns {*}
|
||||||
*/
|
*/
|
||||||
FrameworkInitializer.prototype.runApplication = function (bundleList) {
|
FrameworkInitializer.prototype.runApplication = function () {
|
||||||
return this.loader.loadBundles(bundleList)
|
return this.loader.loadBundles([])
|
||||||
.then(bind(this.resolver.resolveBundles, this.resolver))
|
.then(bind(this.resolver.resolveBundles, this.resolver))
|
||||||
.then(bind(this.registrar.registerExtensions, this.registrar))
|
.then(bind(this.registrar.registerExtensions, this.registrar))
|
||||||
.then(bind(this.bootstrapper.bootstrap, this.bootstrapper));
|
.then(bind(this.bootstrapper.bootstrap, this.bootstrapper));
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ define([
|
|||||||
|
|
||||||
// Initialize the application
|
// Initialize the application
|
||||||
$log.info("Initializing application.");
|
$log.info("Initializing application.");
|
||||||
initializer.runApplication(Constants.BUNDLE_LISTING_FILE);
|
initializer.runApplication();
|
||||||
};
|
};
|
||||||
|
|
||||||
return FrameworkLayer;
|
return FrameworkLayer;
|
||||||
|
|||||||
Reference in New Issue
Block a user