🎨 Log a warning if an extension has already been loaded
If an extension has already been loaded (for instance because it’s persisted), `addDevToolsExtension` will return nothing, which is confusing. This adds a little `console.warn` to educate people about what’s happening. Closes #5854
This commit is contained in:
parent
9d55424c48
commit
b42e6583f7
2 changed files with 7 additions and 1 deletions
|
@ -38,6 +38,8 @@ const getManifestFromPath = function (srcDirectory) {
|
|||
})
|
||||
})
|
||||
return manifest
|
||||
} else if (manifest && manifest.name) {
|
||||
console.warn(`Attempted to load extension "${manifest.name}", but extension was already loaded!`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue