In short, it doesn't stop at the first <head> it finds, so in my code to construct an HTML page to insert as the content of an iframe, ring-refresh dynamically altered the <head> part.
Fix is probably to change str/replace to str/replace-first in the add-script fn.
In short, it doesn't stop at the first
<head>it finds, so in my code to construct an HTML page to insert as the content of an iframe, ring-refresh dynamically altered the<head>part.Fix is probably to change
str/replacetostr/replace-firstin theadd-scriptfn.