Bug 1103692 - ReferenceError: bundle is not defined in webrtcUI.jsm, r=felipe.

This commit is contained in:
Florian Quèze 2015-01-16 22:21:07 +01:00
parent 9e798458e6
commit 12600e6fbc

View File

@ -171,7 +171,9 @@ function getHost(uri, href) {
host = uri.specIgnoringRef;
} else {
// This is unfortunate, but we should display *something*...
host = bundle.getString("getUserMedia.sharingMenuUnknownHost");
const kBundleURI = "chrome://browser/locale/browser.properties";
let bundle = Services.strings.createBundle(kBundleURI);
host = bundle.GetStringFromName("getUserMedia.sharingMenuUnknownHost");
}
}
return host;