We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f5bf1d commit f1c9a92Copy full SHA for f1c9a92
1 file changed
examples/vue-vuetify/src/components/Application.vue
@@ -93,7 +93,7 @@ const handleInitialized = async (registry: PluginRegistry) => {
93
94
// Open initial document
95
registry
96
- ?.getPlugin<DocumentManagerPlugin>(DocumentManagerPlugin.id)
+ .getPlugin<DocumentManagerPlugin>(DocumentManagerPlugin.id)
97
?.provides()
98
?.openDocumentUrl({ url: 'https://snippet.embedpdf.com/ebook.pdf' })
99
.toPromise();
@@ -180,8 +180,9 @@ const handleInitialized = async (registry: PluginRegistry) => {
180
:onClose="actions.close"
181
:onOpenFile="
182
() => {
183
+ if (!registry) return;
184
185
186
187
?.openFileDialog();
188
}
0 commit comments