As a extension development, if we need to use webext-redux on certain website which has already define a global variables named browser, it would make it not work because the getBrowserAPI function looks for a global browser api.
Therefore, add option named browserAPI for development to give the target browserAPI and avoid to looks for a global browser api
Changes
Add option named browserAPI and default is null which fallback to getBrowserAPI function
Goal
As a extension development, if we need to use
webext-redux
on certain website which has already define a global variables namedbrowser
, it would make it not work because thegetBrowserAPI
function looks for a global browser api.Therefore, add option named
browserAPI
for development to give the targetbrowserAPI
and avoid to looks for a global browser apiChanges
browserAPI
and default isnull
which fallback togetBrowserAPI
function