arrow-js icon indicating copy to clipboard operation
arrow-js copied to clipboard

document.body is null

Open HarmlessDave opened this issue 9 years ago • 1 comments

In Firefox and possibly Edge and Safari the F12 console will show document.body is null and Arrow() will be undefined.

Fix: wrap all of arrow.js into an initialization function and call that before the first use of Arrow. An example called from < body onLoad >

init_arrow();
Arrow.show(8000);

HarmlessDave avatar Nov 12 '16 00:11 HarmlessDave

Thanks @HarmlessDave It works like a charm!

I faced the same issue on Google Chrome (Version 97.0.4692.99)

KINGSABRI avatar Jan 23 '22 19:01 KINGSABRI