fix: recreate widget div

This commit is contained in:
potaracom
2023-10-08 09:39:26 +09:00
parent 8f2aafb0fd
commit 50758b36a8

View File

@@ -51,7 +51,7 @@ export function testOnly_setDiv(newDiv: HTMLDivElement | null) {
* Create the widget div and inject it onto the page.
*/
export function createDom() {
if (containerDiv) {
if (document.querySelector('.blocklyWidgetDiv')) {
return; // Already created.
}