locatorjs
locatorjs copied to clipboard
Is it possible to not prompt `Do you want to allow this page to open ..` in Safari
I ran
document.cookie = "LOCATOR_CUSTOM_LINK=vscode-insiders://file${projectPath}${filePath}:${line}:${column}; expires=18 Dec 2033 12:00:00 UTC; path=/";
from https://github.com/infi-pc/locatorjs/issues/17
So I can open LocatorJS inside VSCode Insiders.
One issue I have though is that on Safari every time I try to open it, I get prompted with:
![Screenshot 2022-03-16 at 15 39 07](https://user-images.githubusercontent.com/6391776/158602700-59fa694a-a8fe-41f6-97e8-b706562908c3.png)
Every time I try to use LocatorJS. Is it possible to avoid having this prompt showing every time in Safari?
Hi @nikitavoloboev, it seems that Safari doesn't let users "allow next time" https://apple.stackexchange.com/questions/265267/how-to-skip-safaris-do-you-want-to-allow-this-page-to-open-x-dialog and https://forum.transmissionbt.com/viewtopic.php?t=18205 and https://stackoverflow.com/questions/41620802/how-to-mitigate-safari-warning-do-you-want-to-allow-this-page-to-open-xyz that's not nice of them, all other browsers - Firefox, Chrome, and Edge - have a checkbox with "remember next time"
I use Chrome and I use Locator to go to code so often so I can imagine that having to click on "allow" every time is super annoying, but currently I don't know how to solve that :/
pressing Enter (or Tab and then Enter) after each click can lower the pain a bit if you haven't tried yet.
note: Figma somehow can redirect directly to the desktop app without asking in Safari, I haven't figured out the mechanism they use, but they can do it. So that's a good sign that it is possible to do, I will take some time soon to figure it out.