Skip to content

Commit

Permalink
fix bug in default value for url
Browse files Browse the repository at this point in the history
  • Loading branch information
itsecurityco committed Jan 7, 2017
1 parent 9dd7fa2 commit 0663521
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ storage.get({

chrome.contextMenus.onClicked.addListener(function (info, tab) {
if (info.menuItemId == 'translate') {
storage.get('url', function (item) {
storage.get({
'url': 'https://translate.google.com/#en/es/'
}, function (item) {
chrome.tabs.create({
url: item.url + encodeURIComponent(info.selectionText)
});
Expand Down

0 comments on commit 0663521

Please sign in to comment.