privacywire icon indicating copy to clipboard operation
privacywire copied to clipboard

JS updateAllowedElementScript src works with element

Open the-ge opened this issue 3 years ago • 0 comments

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:

the-ge avatar Aug 20 '22 19:08 the-ge