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 0420799 commit 052067aCopy full SHA for 052067a
src/templates/plugins/prismic.js
@@ -81,7 +81,7 @@ export default async (context, inject) => {
81
<% if (options.preview) { %>
82
// Load prismic script after Nuxt app is mounted
83
if (process.client) {
84
- window.onNuxtReady(() => {
+ window.onNuxtReady && window.onNuxtReady(() => {
85
const script = document.createElement('script')
86
87
script.src = '<%= options.script %>'
0 commit comments