Skip to content

Commit 0846d6f

Browse files
committed
Check existence the better way
1 parent c145359 commit 0846d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/content/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const Browser = Module("browser", {
4343
// Stolen from browser.jar/content/browser/browser.js, more or less.
4444
try {
4545
config.browser.docShell.QueryInterface(Ci.nsIDocCharset).charset = val;
46-
if (PlacesUtils.history.setCharsetForURI !== undefined)
46+
if (PlacesUtils.history.setCharsetForURI)
4747
PlacesUtils.history.setCharsetForURI(getWebNavigation().currentURI, val);
4848
else
4949
PlacesUtils.setCharsetForURI(getWebNavigation().currentURI, val);

0 commit comments

Comments
 (0)