Skip to content

Commit

Permalink
Merge pull request #145 from k-yle/patch-1
Browse files Browse the repository at this point in the history
Add the option to not send the current settings in the url hash
  • Loading branch information
Meiguro committed Mar 12, 2016
2 parents 8593f65 + 0fd6493 commit e4c5a35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,10 @@ Settings.onOpenConfig = function(e) {
options = Settings.getBaseOptions();
return;
}
var hash = encodeURIComponent(JSON.stringify(options));
Pebble.openURL(url + '#' + hash);
if (listener.params.hash !== false) {
url += '#' + encodeURIComponent(JSON.stringify(options));
}
Pebble.openURL(url);
};

Settings.onCloseConfig = function(e) {
Expand Down

0 comments on commit e4c5a35

Please sign in to comment.