In wasPreviouslyLoaded, the arg is directly used as a object key so inexplict toString is used to transform arg into a string. Very unfortunately on the call site the arg passed in is { css, js }, which means no matter whatever value css or js is, it always translate to [object Object].
This bug makes it impossible to register multiple scripts for a tab.
This is probably not the best fix, as css or js can be very huge, thus JSON.stringify can spend a lot of time doing its job.
Sorry for submitting PR w/o discussion. I used this solution to fix my near-production product, so I think I might just as well send it here.
In
wasPreviouslyLoaded
, thearg
is directly used as a object key so inexplict toString is used to transformarg
into a string. Very unfortunately on the call site thearg
passed in is{ css, js }
, which means no matter whatever valuecss
orjs
is, it always translate to[object Object]
.This bug makes it impossible to register multiple scripts for a tab.
This is probably not the best fix, as
css
orjs
can be very huge, thusJSON.stringify
can spend a lot of time doing its job.Sorry for submitting PR w/o discussion. I used this solution to fix my near-production product, so I think I might just as well send it here.