Skip to content

Commit 052067a

Browse files
committed
fix: issue #56
1 parent 0420799 commit 052067a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/plugins/prismic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default async (context, inject) => {
8181
<% if (options.preview) { %>
8282
// Load prismic script after Nuxt app is mounted
8383
if (process.client) {
84-
window.onNuxtReady(() => {
84+
window.onNuxtReady && window.onNuxtReady(() => {
8585
const script = document.createElement('script')
8686

8787
script.src = '<%= options.script %>'

0 commit comments

Comments
 (0)