diff --git a/plugins/globals.ts b/plugins/globals.ts index 55c232532..eb45aa5bd 100644 --- a/plugins/globals.ts +++ b/plugins/globals.ts @@ -115,7 +115,7 @@ const plugin: Plugin = ({ app, store }, inject) => { link.setAttribute('rel', 'stylesheet'); link.setAttribute('href', src); link.classList.add(`${name}-stylesheet`); - script.crossOrigin = 'true'; + link.crossOrigin = 'true'; link.addEventListener('load', () => resolve()); link.addEventListener('error', (event) => { reject(new LoadScriptError(name, src, typeof event === 'string' ? event : event.type));