Backed out changeset cadbabe9cb86 (bug 1392407) for eslint failure at toolkit/content/aboutTelemetry.js:2065: Multiple spaces found before '{'. r=backout

This commit is contained in:
Sebastian Hengst
2017-08-25 19:31:18 +02:00
parent 598423b1f1
commit a2772009aa

View File

@@ -2059,12 +2059,7 @@ function urlStateRestore() {
} }
function openJsonInFirefoxJsonViewer(json) { function openJsonInFirefoxJsonViewer(json) {
json = unescape(encodeURIComponent(json)); window.open("data:application/json;base64," + btoa(json));
try {
window.open("data:application/json;base64," + btoa(json));
} catch (e) {
show(document.querySelector(".category[value=raw-payload-section]"));
}
} }
function onLoad() { function onLoad() {