Remove uppercase node special case from skooma.js

This commit is contained in:
Talia 2021-02-22 20:23:41 +01:00
parent 7a61b965ba
commit 7e72b33325
No known key found for this signature in database
GPG Key ID: AD727AD22802D0D6
1 changed files with 1 additions and 7 deletions

View File

@ -27,10 +27,4 @@ export const node = (name, args) => {
return element
}
export const html = new Proxy(Window, { get: (target, prop, receiver) => {
// This distinction is only helpful because javascript is fucking restarted
if (prop.search(/^[A-Z]/)+1)
return (arg) => node(prop, [arg])
else
return (...args) => node(prop, args)
}})
export const html = new Proxy(Window, { get: (target, prop, receiver) => { return (...args) => node(prop, args) }})