Skip to content

Commit

Permalink
feat: export beautified JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
crispgm committed Jul 30, 2021
1 parent 4b11111 commit 6cfb9f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ $(document).ready(function() {
});
// export rule button
$("#export-rule").click(function() {
var rulesString = JSON.stringify(rules);
var rulesString = JSON.stringify(rules, null, 2);
var blob = new Blob([rulesString], { type: "application/json" });
var newLink = document.createElement("a");
newLink.download = "redirecting-rules.json";
Expand Down

0 comments on commit 6cfb9f3

Please sign in to comment.