Chrome,Safari: fix typo and quotes

This commit is contained in:
Deathamns 2014-12-19 13:17:25 +01:00
parent aa2dc049a2
commit 0d28d19a4e
2 changed files with 4 additions and 4 deletions

View File

@ -229,7 +229,7 @@ vAPI.tabs.injectScript = function(tabId, details, callback) {
}
};
if ( tabId ) {
tabid = parseInt(tabId, 10);
tabId = parseInt(tabId, 10);
chrome.tabs.executeScript(tabId, details, onScriptExecuted);
} else {
chrome.tabs.executeScript(details, onScriptExecuted);

View File

@ -674,7 +674,7 @@ vAPI.net.registerListeners = function() {
e.message = false;
}
else if (e.message.type === 'script'
&& typeof block.redirectUrl === "string") {
&& typeof block.redirectUrl === 'string') {
e.message = block.redirectUrl;
}
else {
@ -784,14 +784,14 @@ vAPI.contextMenu.create = function(details, callback) {
};
safari.application.addEventListener('contextmenu', this.onContextMenu);
safari.application.addEventListener("command", this.onContextMenuCmd);
safari.application.addEventListener('command', this.onContextMenuCmd);
};
/******************************************************************************/
vAPI.contextMenu.remove = function() {
safari.application.removeEventListener('contextmenu', this.onContextMenu);
safari.application.removeEventListener("command", this.onContextMenuCmd);
safari.application.removeEventListener('command', this.onContextMenuCmd);
this.onContextMenu = null;
this.onContextMenuCmd = null;
};