Skip to content

Commit

Permalink
Fix scripts-less usage
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Nov 16, 2017
1 parent 441d790 commit 858f4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export async function addToTab(tab, contentScripts) {
throw new TypeError('Specify a Tab or tabId');
}

if (contentScripts === false) {
if (!contentScripts) {
// Get all scripts from manifest.json
contentScripts = chrome.runtime.getManifest().content_scripts;
} else if (!Array.isArray(contentScripts)) {
Expand Down

0 comments on commit 858f4fe

Please sign in to comment.