[Stylish Firefox] getBackgroundPage() can return null

edited November 12 in Stylish Firefox

storage.js uses this code

var prefs = chrome.extension.getBackgroundPage().prefs || new function Prefs() {

But chrome.extension.getBackgroundPage() can be null, so the above can throw.

Sign In or Register to comment.