Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #24 from bezin/fix-editor-undefined
Browse files Browse the repository at this point in the history
Only set srcset component, if editor plugin is installed
  • Loading branch information
bnomei authored Apr 11, 2020
2 parents f82bcf8 + b6e01f8 commit dd6c6f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Srcset from "./components/blocks/Srcset.vue";

editor.block("srcset", Srcset);
if (panel.plugins.fields['editor']) {
editor.block("srcset", Srcset);
}

0 comments on commit dd6c6f3

Please sign in to comment.