You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would love to submit a patch for that i would replace the code with
something that allows injection of HTMLElement into a function that then Returns DriveElement
what do you think?
core.mjs:27464
function DeriveElement(BaseElement = HTMLElement) {
^
ReferenceError: HTMLElement is not defined
at DeriveElement (file:///home/frank/Projekte/streamline/src/server/core.mjs:27464:38)
at file:///home/frank/Projekte/streamline/src/server/core.mjs:27523:72
at ModuleJob.run (node:internal/modules/esm/module_job:175:25)
at async Loader.import (node:internal/modules/esm/loader:178:24)
at async Object.loadESM (node:internal/process/esm_loader:68:5)
into the function ajax(o) { function that uses it so that it does not get read on inital load
give the XHR Modifcation for the MOCK a init function so that it does not get inited on load
// This overwrites the default XHR with a mock XHR object.// The mock XHR object's `.send` method is able to// call the fixture callbacks or create a real XHR request// and then respond normally.// Save the real XHR object as XHRvarXHR=XMLHttpRequest,// Get a global reference.GLOBAL=typeofcommonjsGlobal!=="undefined"? commonjsGlobal : window;// Figure out props and events on XHR object// but start with some defaultsvarprops$2=["type","url","async","response","responseText","responseType","responseXML","responseURL","status","statusText","readyState"];varevents=["abort","error","load","loadend","loadstart","progress","readystatechange"];(function(){varx=newXHR();for(varpropinx){if(prop.indexOf("on")===0){if(events.indexOf(prop.substr(2))===-1){events.push(prop.substr(2));}}elseif(props$2.indexOf(prop)===-1&&typeofx[prop]!=='function'){props$2.push(prop);}}})();// DEFINE HELPERS
The text was updated successfully, but these errors were encountered:
I would love to submit a patch for that i would replace the code with
something that allows injection of HTMLElement into a function that then Returns DriveElement
what do you think?
my current workaround
Other changes
move
into the function ajax(o) { function that uses it so that it does not get read on inital load
The text was updated successfully, but these errors were encountered: