mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 1103692 - ReferenceError: bundle is not defined in webrtcUI.jsm, r=felipe.
This commit is contained in:
parent
9e798458e6
commit
12600e6fbc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user