fix: Clicking on a link to GitHub fails#535
fix: Clicking on a link to GitHub fails#535imlakshay08 wants to merge 6 commits intoscarpe-team:mainfrom
Conversation
|
Hey @noahgibbs , could you please review and suggest further changes that needs to be done? |
|
Hm. First problem is that it's printing the Proc's to_s right into the Javascript. So that's definitely not working. But I'll mess with it a bit and see if what I was thinking of works in general... |
|
So, I was thinking that we should not change examples/link.rb -- instead when we render links, we could include the navigate() call in JS. But it looks like we already have an onclick handler, so it's probably easier to use that (and always render it) than to sometimes render the current JS handler and sometimes render the navigate() handler. So I tried messing with that a bit. I reverted examples/link.rb to the old version and did this: Unfortunately I'm still getting the same error: So then the question is: why is this failing this way in Scarpe, but it runs fine in the little test program? I don't have an immediate answer. |
Merge the codebase
Description
For #516
This pull request addresses the issue where clicking on GitHub links was failing due to Content Security Policy (CSP) restrictions.
Checklist