Skip to content

Commit

Permalink
Prettier printing of exported rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Cimbali committed Mar 15, 2020
1 parent 425fdd3 commit d0ea9db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/pages/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,9 @@ function import_rules()

function export_rules()
{
return Rules.loaded.then(rules =>
return Rules.loaded.then(() =>
{
let blob = new Blob([JSON.stringify(rules)], {type : 'data:application/json;charset=utf-8'})
let blob = new Blob([JSON.stringify(Rules.all_rules, null, 2)], {type : 'data:application/json;charset=utf-8'})

let a = document.createElement('a');
a.href = URL.createObjectURL(blob);
Expand Down

0 comments on commit d0ea9db

Please sign in to comment.