1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-07-17 17:32:51 +00:00

Decode paths for TiddlyFox

This commit is contained in:
Jeremy Ruston 2013-03-19 18:36:27 +00:00
parent 5a6c2b91f8
commit 28707edd72

View File

@ -20,7 +20,7 @@ TiddlyFoxSaver.prototype.save = function(text) {
if(messageBox) { if(messageBox) {
// Create the message element and put it in the message box // Create the message element and put it in the message box
var message = document.createElement("div"); var message = document.createElement("div");
message.setAttribute("data-tiddlyfox-path",document.location.pathname); message.setAttribute("data-tiddlyfox-path",decodeURIComponent(document.location.pathname));
message.setAttribute("data-tiddlyfox-content",text); message.setAttribute("data-tiddlyfox-content",text);
messageBox.appendChild(message); messageBox.appendChild(message);
// Create and dispatch the custom event to the extension // Create and dispatch the custom event to the extension