Skip to content

Commit

Permalink
modify some
Browse files Browse the repository at this point in the history
  • Loading branch information
madneal committed Jun 1, 2017
1 parent 44bc8df commit b8945ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
chrome.browserAction.onClicked.addListener(function(tab) {
//get current selected tab
chrome.tabs.query({active: true, currentWindow: true}, function(arrayOfTabs) {
const activeTab = arraryOfTabs[0];
const activeTab = arrayOfTabs[0];
const url = activeTab.url + '?format=json';
fetch(url)
.then(function(res) {
Expand Down Expand Up @@ -83,7 +83,7 @@ function processParagraph(p) {
token = text.substring(previousIndex, j);
previousIndex = j;
tokens.push(token);
tokens.push(markups_array[j];)
tokens.push(markups_array[j]);
}
}
tokens.push(text.substring(j - 1));
Expand Down

0 comments on commit b8945ec

Please sign in to comment.