aboutsummaryrefslogtreecommitdiffstats
path: root/google-plus-commando.js
diff options
context:
space:
mode:
authorKohei Suzuki2015-01-14 20:31:44 +0900
committerKohei Suzuki2015-01-14 20:31:44 +0900
commitfeb5a9da3fd9a50106a5fb5df76b6cd48bbb238a (patch)
tree41e8bf73065e9ca11d13083c1b19845d262a4f55 /google-plus-commando.js
parentfc4b39b9347f7566fbf8394b47cba524bc91565d (diff)
downloadvimperator-plugins-feb5a9da3fd9a50106a5fb5df76b6cd48bbb238a.tar.bz2
String.prototype.quote() has been removed in Firefox 37
https://github.com/vimperator/vimperator-labs/pull/113 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/quote
Diffstat (limited to 'google-plus-commando.js')
-rw-r--r--google-plus-commando.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/google-plus-commando.js b/google-plus-commando.js
index 1b0440d..31c38f5 100644
--- a/google-plus-commando.js
+++ b/google-plus-commando.js
@@ -655,14 +655,14 @@ let g:gplus_commando_map_menu = "m"
txt = "<br/>\n";
break;
case "img":
- txt = "<img src=" + aNode.src.quote() + " width=\"" + aNode.width + "\" height=\"" + aNode.height + "\"/>";
+ txt = "<img src=" + JSON.stringify(aNode.src) + " width=\"" + aNode.width + "\" height=\"" + aNode.height + "\"/>";
break;
case "p":
txt = nodelist2txt(children, "p", "").join("") + "<br/>\n";
break;
case "a":
if (aNode.hasAttribute("href") && aNode.href.indexOf("http") == 0) {
- txt = "<a href=" + aNode.href.quote() + (aNode.title ? " title=" + aNode.title.quote() : "") + ">" +
+ txt = "<a href=" + JSON.stringify(aNode.href) + (aNode.title ? " title=" + JSON.stringify(aNode.title) : "") + ">" +
nodelist2txt(children, "a", "").join("") +
"</a>";
break;