Bug 1629499 - SeaMonkey's DownloadsCommon.jsm still uses getComplexValue. r=frg
This commit is contained in:
Родитель
f363159ad1
Коммит
ebcf3502e7
|
@ -756,9 +756,8 @@ DownloadsDataCtor.prototype = {
|
||||||
if (!this._sound)
|
if (!this._sound)
|
||||||
this._sound = Cc["@mozilla.org/sound;1"].createInstance(Ci.nsISound);
|
this._sound = Cc["@mozilla.org/sound;1"].createInstance(Ci.nsISound);
|
||||||
try {
|
try {
|
||||||
let url = Services.prefs.getComplexValue("browser.download.finished_sound_url",
|
let url = Services.prefs.getStringPref("browser.download.finished_sound_url");
|
||||||
Ci.nsISupportsString);
|
this._sound.play(Services.io.newURI(url));
|
||||||
this._sound.play(Services.io.newURI(url.data));
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this._sound.beep();
|
this._sound.beep();
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче