Commit 3483e7ea authored by Stephane Glondu's avatar Stephane Glondu
Browse files

Adapt the booth to ignore the trailing newline in election.json

parent 9fb8e1b4
......@@ -328,6 +328,7 @@ BOOTH.show_encryption_message_before = function(func_to_execute) {
BOOTH.load_and_setup_election = function(election_url) {
// the hash will be computed within the setup function call now
$.get(election_url, function(raw_json) {
raw_json = raw_json.trim();
BOOTH.setup_election(raw_json);
BOOTH.show_election();
BOOTH.election_url = election_url;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment