From 2ea385f40fb6ccd9e2ccced6ec66d9d52d5909b7 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 3 Apr 2014 10:48:09 -0700 Subject: [PATCH] TypeError: Constructor Image requires 'new' --- common/modules/config.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/modules/config.jsm b/common/modules/config.jsm index 359cf526..dfae6a54 100644 --- a/common/modules/config.jsm +++ b/common/modules/config.jsm @@ -593,7 +593,7 @@ config.INIT = update(Object.create(config.INIT), config.INIT, { init: function init(dactyl, modules, window) { init.superapply(this, arguments); - let img = window.Image(); + let img = new window.Image; img.src = this.logo || "resource://dactyl-local-content/logo.png"; img.onload = util.wrapCallback(function () { highlight.loadCSS(literal(/*