1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 20:17:58 +01:00

TypeError: Constructor Image requires 'new'

This commit is contained in:
Kris Maglione
2014-04-03 10:48:09 -07:00
parent 8686bfd08b
commit 2ea385f40f

View File

@@ -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(/*