mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 10:48:44 +00:00
10
js/script-editor/script-editor.js
Normal file
10
js/script-editor/script-editor.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { h, render } from 'preact';
|
||||
import Script from './script';
|
||||
|
||||
window.ScriptEditor = function (mountEl, props, mergeEl) {
|
||||
return render(h(Script, props), mountEl, mergeEl);
|
||||
};
|
||||
|
||||
window.unmountPreact = function (mountEl, mergeEl) {
|
||||
render(() => null, mountEl, mergeEl);
|
||||
};
|
||||
Reference in New Issue
Block a user