mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:48:00 +01:00
TypeError: Constructor Image requires 'new'
This commit is contained in:
@@ -593,7 +593,7 @@ config.INIT = update(Object.create(config.INIT), config.INIT, {
|
|||||||
init: function init(dactyl, modules, window) {
|
init: function init(dactyl, modules, window) {
|
||||||
init.superapply(this, arguments);
|
init.superapply(this, arguments);
|
||||||
|
|
||||||
let img = window.Image();
|
let img = new window.Image;
|
||||||
img.src = this.logo || "resource://dactyl-local-content/logo.png";
|
img.src = this.logo || "resource://dactyl-local-content/logo.png";
|
||||||
img.onload = util.wrapCallback(function () {
|
img.onload = util.wrapCallback(function () {
|
||||||
highlight.loadCSS(literal(/*
|
highlight.loadCSS(literal(/*
|
||||||
|
|||||||
Reference in New Issue
Block a user