Bug 1138094 - Do not use non-standard flag argument of String.prototype.replace in im/. r=florian
This commit is contained in:
Родитель
da7fa5e36a
Коммит
41aeda1dc4
|
@ -32,7 +32,7 @@
|
|||
<![CDATA[
|
||||
let browser = this.browser;
|
||||
this.tab.setAttribute("label",
|
||||
browser.contentTitle.replace("\0", "", "g") || browser.currentURI.spec);
|
||||
browser.contentTitle.replace(/\0/g, "") || browser.currentURI.spec);
|
||||
if (browser.currentURI.spec == "about:addons") {
|
||||
// Set the tab type to "addons" so that CSS will set its favicon.
|
||||
this.tab.setAttribute("type", "addons");
|
||||
|
|
|
@ -23,7 +23,7 @@ function setColors(target)
|
|||
var senderHue = parsed[1];
|
||||
|
||||
target.style.borderTop = p_border_top.replace("#", senderHue);
|
||||
target.style.background = p_background.replace("#", senderHue, "g");
|
||||
target.style.background = p_background.replace(/#/g, senderHue);
|
||||
}
|
||||
|
||||
function checkNewText(target)
|
||||
|
@ -35,7 +35,7 @@ function checkNewText(target)
|
|||
for (var i = 0; i < nicks.length; ++i) {
|
||||
var nick = nicks[i];
|
||||
if (!nick.hasAttribute("left"))
|
||||
nick.style.background = nick_background.replace("#", nick.getAttribute("nickColor"), "g");
|
||||
nick.style.background = nick_background.replace(/#/g, nick.getAttribute("nickColor"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,9 +22,9 @@ function setColors(target)
|
|||
if (parsed) {
|
||||
var senderHue = parsed[1];
|
||||
if (target.classList.contains("context"))
|
||||
target.setAttribute("style", bg_context_gradient.replace("#", senderHue, "g"));
|
||||
target.setAttribute("style", bg_context_gradient.replace(/#/g, senderHue));
|
||||
else
|
||||
target.setAttribute("style", bg_gradient.replace("#", senderHue, "g"));
|
||||
target.setAttribute("style", bg_gradient.replace(/#/g, senderHue));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче