Skip to content

Commit

Permalink
Initializing scraper presets to null instead of empty array so that d…
Browse files Browse the repository at this point in the history
…efault presets automatically added correctly.
  • Loading branch information
Dave Heaton committed Dec 10, 2010
1 parent dfcce9f commit cb75851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/bit155/scraper.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ bit155.scraper.viewer = function(tab, options) {
* larger scope than just the viewer.
*/
bit155.scraper.presets = bit155.attr({
initial: JSON.parse(localStorage['presets'] || localStorage['viewer.presets'] || '[]'),
initial: JSON.parse(localStorage['presets'] || localStorage['viewer.presets'] || 'null'),
filter: function(v) {
if (v && !$.isArray(v)) {
throw new Error('Preset must be an array.');
Expand Down

0 comments on commit cb75851

Please sign in to comment.