Open vzaidman opened 3 years ago
Describe the bug
I have a use case where a script is running without turning it on.
At least when I added the following js: https://roam.davidvargas.me/extensions/page-synonyms/
To Reproduce
1. add the following to the [[roam/js]] page:
- aliasing: - {{roam/js}} - ```javascript var old = document.getElementById("page-synonyms"); if (old) { old.remove(); } var s = document.createElement("script"); s.src = "https://roamjs.com/page-synonyms.js"; s.id = "page-synonyms"; s.async = false; s.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(s);```
refresh the page (F5) without approving the script by WITHOUT clicking on "Yes I know what I'm doing"
notice the alias feature is actually added. (right click a bullet and it will be at the bottom)
System Information:
Additional context
Couldn't reproduce with a simpler script like just console.log('hi')
console.log('hi')
Describe the bug
I have a use case where a script is running without turning it on.
At least when I added the following js: https://roam.davidvargas.me/extensions/page-synonyms/
To Reproduce
1. add the following to the [[roam/js]] page:
refresh the page (F5) without approving the script by WITHOUT clicking on "Yes I know what I'm doing"
notice the alias feature is actually added. (right click a bullet and it will be at the bottom)![image](https://user-images.githubusercontent.com/5188459/96236393-a8719000-0fa4-11eb-8c5a-aedc24d85f6f.png)
System Information:
Additional context
Couldn't reproduce with a simpler script like just
console.log('hi')