#40 - Fix passing provider to Vue

This commit is contained in:
Kacper Donat 2020-05-02 23:51:50 +02:00
parent af6a2a0756
commit 0c5ffbb567

View File

@ -53,6 +53,11 @@ Component.registerHooks(['removed']);
const appRoot = document.getElementById('app');
store.replaceState({
...store.state,
provider: window['data']?.provider,
});
// here goes "public" API
window['app'] = Object.assign({
state: {}