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

View file

@ -27,10 +27,4 @@ export const node = (name, args) => {
return element return element
} }
export const html = new Proxy(Window, { get: (target, prop, receiver) => { export const html = new Proxy(Window, { get: (target, prop, receiver) => { return (...args) => node(prop, args) }})
// 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)
}})