Skip to content

Commit

Permalink
Merge pull request #221 from basil/remove-prototype
Browse files Browse the repository at this point in the history
Remove usages of Prototype
  • Loading branch information
jglick authored Jul 25, 2023
2 parents c03a608 + 6bffb09 commit 5a383bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public POSTHyperlinkNote(String url, int length) {

@Override protected String extraAttributes() {
// TODO perhaps add hoverNotification
return " onclick=\"new Ajax.Request(decodeURIComponent(atob('" + encodeForJavascript(url) + "'))); return false\"";
return " onclick=\"fetch(decodeURIComponent(atob('" + encodeForJavascript(url) + "')), { method: 'post', headers: crumb.wrap({})}); return false\"";
}

/**
Expand Down

0 comments on commit 5a383bd

Please sign in to comment.