fix: add null check for preview reference in loadScripts method
This commit is contained in:
parent
1fa7ee311e
commit
74e4b5b3c7
@ -209,6 +209,9 @@ export default {
|
||||
methods: {
|
||||
loadScripts() {
|
||||
const preview = this.$refs.previewFooterHtml;
|
||||
|
||||
if (!preview) return;
|
||||
|
||||
const scripts = preview.querySelectorAll('script');
|
||||
|
||||
scripts.forEach(script => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user