Skip to content

Commit

Permalink
== fix, #42
Browse files Browse the repository at this point in the history
  • Loading branch information
grssam committed Apr 21, 2012
1 parent 91034f0 commit 42e989a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/editor.js
Expand Up @@ -1915,7 +1915,7 @@ StyleEditor.prototype = {
if (text.search(/[@]namespace[ ]+url\([^\)]{1,}\)/) == -1 && this.namespace == null) {
// checking if moz-url is there or not
let mozDocURL = text.match(/[@]-moz-document[ ]+(url[\-prefix]{0,7}|domain|regexp)[ ]{0,}\(['"]?([^'"\)]+)['"]?\)[ ]/);
if (mozDocURL != null && mozDocURL[2].search("chrome://") = -1 && mozDocURL[2].search("about:") == -1) {
if (mozDocURL != null && mozDocURL[2].search("chrome://") == -1 && mozDocURL[2].search("about:") == -1) {
text = "@namespace url(http://www.w3.org/1999/xhtml);\n" + text;
origCaretPos += 46;
}
Expand Down

0 comments on commit 42e989a

Please sign in to comment.