From 99a104db48f0e560600d3eee4aff1d084a93209b Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle <patrizio@bekerle.com> Date: Thu, 21 Jan 2021 07:47:39 +0100 Subject: [PATCH] Fix app shell not listening to provider (#32) --- src/dbp-signature.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dbp-signature.js b/src/dbp-signature.js index 3549fd3..0c4d437 100644 --- a/src/dbp-signature.js +++ b/src/dbp-signature.js @@ -2,5 +2,6 @@ import {AppShell} from '@dbp-toolkit/app-shell'; import * as commonUtils from '@dbp-toolkit/common/utils'; import {Provider} from '@dbp-toolkit/provider'; +// It's important that the Provider is created before the AppShell, so the AppShell can subscribe to the Provider +commonUtils.defineCustomElement('dbp-provider', Provider); commonUtils.defineCustomElement('dbp-signature', AppShell); -commonUtils.defineCustomElement('dbp-provider', Provider); \ No newline at end of file -- GitLab