From ac57a6c782d31774fae0e6e8a8dc6fc1cd0fb7b5 Mon Sep 17 00:00:00 2001 From: "David Humphrey (:humph) david.humphrey@senecacollege.ca" Date: Mon, 22 Jun 2015 13:18:58 -0400 Subject: [PATCH] Don't double-fire bramble:loaded, and Bramble ready event --- src/extensions/default/bramble/main.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/extensions/default/bramble/main.js b/src/extensions/default/bramble/main.js index 3a8d28b5e49..cbcc8384916 100644 --- a/src/extensions/default/bramble/main.js +++ b/src/extensions/default/bramble/main.js @@ -175,10 +175,14 @@ define(function (require, exports, module) { startLiveDev(); // Preload BlobURLs for all assets in the filesystem - BlobUtils.preload(BrambleStartupProject.getInfo().root, finishStartup); + BlobUtils.preload(BrambleStartupProject.getInfo().root, function(err) { + if(err) { + // Possibly non-critical error, warn at least, but keep going. + console.warn("[Bramble] unable to preload all filesystem Blob URLs", err); + } - // When the app is loaded and ready, hide the menus/toolbars - UI.initUI(finishStartup); + UI.initUI(finishStartup); + }); }); // We expect the hosting app to setup the filesystem, and give us a