mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #1138 - Part 4: fix JSON Viewer save functionality
Saving JSON from the viewer was broken, because the message passed to the `saveToFile` function contained unneeded data. This bug was introduced by 23e68227a2e3f3946fa4fd5589f338e6b36a6e56.
This commit is contained in:
parent
55d401707c
commit
73cdb3106e
1 changed files with 1 additions and 4 deletions
|
|
@ -252,11 +252,8 @@ function onContentMessage(e) {
|
|||
break;
|
||||
|
||||
case "save":
|
||||
// The window ID is needed when the JSON Viewer is inside an iframe.
|
||||
let windowID = win.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIDOMWindowUtils).outerWindowID;
|
||||
childProcessMessageManager.sendAsyncMessage(
|
||||
"devtools:jsonview:save", {url: value, windowID: windowID});
|
||||
"devtools:jsonview:save", value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue