From 5e30fe503290e7330473ed494fa70e1f6dd278d6 Mon Sep 17 00:00:00 2001 From: qsniyg Date: Sun, 18 Aug 2024 14:34:09 +0000 Subject: [PATCH] Replace delete __IMU_GETBIGIMAGE__ with clearing it Not great, but works around a uglifyjs issue --- tools/bigimage_template.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/bigimage_template.js b/tools/bigimage_template.js index 04a3344b..6e38e5c5 100644 --- a/tools/bigimage_template.js +++ b/tools/bigimage_template.js @@ -50,7 +50,8 @@ var _get_bigimage = function() { } // in case the userscript is loaded in the window context - delete __IMU_GETBIGIMAGE__; + //delete __IMU_GETBIGIMAGE__; // not allowed in strict mode + __IMU_GETBIGIMAGE__ = void 0; } if (require_rules_failed) {