diff --git a/Base/src/main/resources/sesl/shim.html b/Base/src/main/resources/sesl/shim.html index c420909..979dbbc 100644 --- a/Base/src/main/resources/sesl/shim.html +++ b/Base/src/main/resources/sesl/shim.html @@ -33,11 +33,11 @@ allFields.font_size += "px"; }); + Widget.on("new-settings", () => parent.location.reload()); + Widget.on( "custom-data", ({ shimType, customCSS, customJS, customHTML }) => { - // Widget.on("update", () => location.reload()); // Mimic Streamlabs behavior. - // Make the custom CSS style. { // Go through all of the fields and replace them. diff --git a/Modes/Shim/src/main/java/co/casterlabs/caffeinated/sesl/shim_mode/ShimWidget.java b/Modes/Shim/src/main/java/co/casterlabs/caffeinated/sesl/shim_mode/ShimWidget.java index 0e4a73c..bd961e9 100644 --- a/Modes/Shim/src/main/java/co/casterlabs/caffeinated/sesl/shim_mode/ShimWidget.java +++ b/Modes/Shim/src/main/java/co/casterlabs/caffeinated/sesl/shim_mode/ShimWidget.java @@ -38,6 +38,8 @@ public class ShimWidget extends SESLWidget { @Override protected void onSettingsUpdate() { + this.broadcastToAll("new-settings"); // Tell all of the Widgets to reload. + this.setSettingsLayout( SESL.generateLayout(this) .addSection(