Permalink
Browse files

use mozSettings only if its not null

  • Loading branch information...
1 parent bcf6846 commit bff002bf95873ed7f9c18ced251968b5960500d1 @andreasgal andreasgal committed Mar 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/homescreen/js/homescreen.js
@@ -607,7 +607,7 @@ var SettingsListener = {
_callbacks: {},
init: function sl_init() {
- if ('mozSettings' in navigator)
+ if ('mozSettings' in navigator && navigator.mozSettings)
navigator.mozSettings.onsettingchange = this.onchange.bind(this);
},

0 comments on commit bff002b

Please sign in to comment.