Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
blurymind committed Aug 10, 2024
1 parent 86c73b3 commit 70c950e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/public/plugins/plugin-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const EXAMPLE = `
const k = kaboom({
canvas: document.querySelector("#kaboom"),
})
k.loadSprite("bean", "public/images/pixel.png")
k.loadSprite("bean", "public/icon.png")
}
}
}
Expand Down Expand Up @@ -235,7 +235,7 @@ export var PluginEditor = function ({
padding-right: 9px;
border-radius: 0.9rem;"
onclick="app.plugins.${self.name
}.onDownloadPreview()"
}.onDownloadPreview()"
>
Download
</button>
Expand All @@ -245,7 +245,7 @@ export var PluginEditor = function ({
`,
showConfirmButton: false ,
showConfirmButton: false,
focusConfirm: false,
customClass: 'swal-wide',
width: `${window.innerWidth - 20}px`,
Expand All @@ -258,6 +258,10 @@ export var PluginEditor = function ({
addStyleSheet('public/plugins/ace-diff/ace-diff.min.css');
}
},
onAfterClose: () => {
removeStyleSheet('public/plugins/ace-diff/ace-diff-dark.min.css');
removeStyleSheet('public/plugins/ace-diff/ace-diff.min.css');
},
onOpen: () => {
// EDITOR
this.editor = ace.edit('js-editor');
Expand Down Expand Up @@ -307,10 +311,6 @@ export var PluginEditor = function ({
// initialize data on both editor and differ
this.onSetEditingFile();
},
onAfterClose: () => {
removeStyleSheet('public/plugins/ace-diff/ace-diff-dark.min.css');
removeStyleSheet('public/plugins/ace-diff/ace-diff.min.css');
},
preConfirm: () => {
setPluginStore(self.name, 'pluginEditorOpen', false);
return this.editor.getValue();
Expand Down

0 comments on commit 70c950e

Please sign in to comment.