This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert Migrate to Manifest V3 (MV3). see #23
- Loading branch information
1 parent
a0880b1
commit 88ea31f
Showing
5 changed files
with
46 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
import { createStore, applyMiddleware } from 'redux'; | ||
import storeCreatorFactory from 'reduxed-chrome-storage'; | ||
import rootReducer from './reducers'; | ||
import thunkMiddleware from 'redux-thunk'; | ||
import { wrapStore, alias } from 'webext-redux'; | ||
import aliases from './aliases'; | ||
|
||
const options = { | ||
createStore: createStore, | ||
}; | ||
const asyncStoreCreator = storeCreatorFactory(options); | ||
const store = createStore( | ||
rootReducer, | ||
applyMiddleware( | ||
alias(aliases), | ||
thunkMiddleware | ||
) | ||
); | ||
|
||
asyncStoreCreator(rootReducer, applyMiddleware(alias(aliases), thunkMiddleware)) | ||
.then((store) => { | ||
setTimeout(() => { | ||
wrapStore(store, { | ||
portName: 'buywithbtc', | ||
}); | ||
}); | ||
}); | ||
wrapStore(store, { | ||
portName: 'buywithbtc' | ||
}); |