From 9725bcd3ae593f095fd6d8488ebb74aa289c705e Mon Sep 17 00:00:00 2001 From: cilame Date: Fri, 19 Nov 2021 14:18:03 +0800 Subject: [PATCH] Update env_maker.js --- tools/env_maker.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/env_maker.js b/tools/env_maker.js index 8a03e9f..afe25c4 100644 --- a/tools/env_maker.js +++ b/tools/env_maker.js @@ -903,6 +903,10 @@ PluginArray._init = function(_this){ }) } +// 确保 _tmp_plugins 内正常,这里初始化一次 +new MimeTypeArray +new PluginArray + URL.createObjectURL = saf(function createObjectURL(){return _fu("URL.createObjectURL(*)", arguments, this[_y].addEventListener?this[_y].addEventListener(...arguments):void 0)}) URL.revokeObjectURL = saf(function revokeObjectURL(){return _fu("URL.revokeObjectURL(*)", arguments, this[_y].addEventListener?this[_y].addEventListener(...arguments):void 0)}) @@ -1494,6 +1498,8 @@ document[_y].forms = HTMLCollection._new() document[_y].forms[0] = document.createElement('form') document[_y].forms[1] = document.createElement('form') +_odt(document[_y], 'URL', {get(){return location[_y].href}}) + Image._init = function(_this){ _this[_y].style = CSSStyleDeclaration._new() _this[_y].tagName = "IMG"