Skip to content

Commit

Permalink
standard
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Aug 13, 2019
1 parent 6018f45 commit 8cc2520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1120,9 +1120,9 @@ function assertPort (port) {
}
}

// This prevents "Unchecked runtime.lastError" errors
// Call the getter function to prevent "Unchecked runtime.lastError" errors
function ignoreLastError () {
void chrome.runtime.lastError // call the getter function
void chrome.runtime.lastError // eslint-disable-line no-void
}

function chromeCallbackWrap (callback) {
Expand Down

0 comments on commit 8cc2520

Please sign in to comment.