privacywire
privacywire copied to clipboard
JS updateAllowedElementScript src works with element
I had to change
if (dataset.src) {
newEl.src = dataset.src
}
to
if (el.src) {
newEl.src = el.src
}
in src/js/PrivacyWire.js:403-404, (updateAllowedElementScript(el)) to get allowing scripts only after consent to work.
I know just enough JavaScript to be dangerous, so I'm a bit unsure about this being a bug or a side effect of the tortures I inflicted on ProcessWire and PrivacyWire :blush: