1
0
Fork 0

Escape quotes

This commit is contained in:
Gregory Eremin 2014-09-22 14:22:54 +04:00
parent dcdc399fea
commit 2c0cc2ec45
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ function updateTab(info) {
title = sym + (info.index + 1) + ' ' + title;
chrome.tabs.executeScript(info.id, {
code: "document.title = '" + title + "';"
code: "document.title = '" + title.replace(/'/, '\\\'') + "';"
}, function() {
if (chrome.runtime.lastError) {
console.error(chrome.runtime.lastError.message);