MitsuhaKitsune / vuex-webextensions

A Vuex plugin to share store through webextensions components
MIT License
83 stars 30 forks source link

config to use localStorage instead ? #26

Closed saveroo closed 4 years ago

saveroo commented 4 years ago

i have this case where i used injected script rather than content script, and injected script doesn't have access to chrome APIs... since it's injected into the current web page of the tab.

it would be good if there's a config to change storage adapter, either to use localStorage or browser.storage.

MitsuhaKitsune commented 4 years ago

For use localstorage instead webextensions messaging API exists some plugins like https://github.com/eduardnikolenko/vuex-storage-sync.

Implement more "drivers" on vuex-webextensions require a lot of time reworking the main part of the plugin.

Sorry if I can't help you with this, but existing plugins for localstorage, is only rebuild the wheel.