packr icon indicating copy to clipboard operation
packr copied to clipboard

In Chrome 46.0.2490.86 / Firefox 42, the minimized code with base62 encode does not work.

Open ryuzee opened this issue 10 years ago • 0 comments

In Chrome 46.0.2490.86 / Firefox 42, the minimized code with base62 encode does not work.

when executing the generated source, it shows "Uncaught TypeError: Cannot set property length of #<HTMLCollection> which has only a getter"

document.getElementsByTagName('script') returns Array Like object depending on the kinds of browser. Then I suppose to replace from

document.getElementsByTagName('script')

to

Array.apply(null,document.getElementsByTagName('script'))

ryuzee avatar Dec 01 '15 04:12 ryuzee