Remove uppercase node special case from skooma.js

This commit is contained in:
Talia 2021-02-22 20:23:41 +01:00
parent b626076a04
commit 46864950b2
Signed by: darkwiiplayer
GPG key ID: 7808674088232B3E

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) }})