Use private functions for bridge components

This commit is contained in:
Jay Ohms
2026-01-19 10:05:48 -05:00
parent e87dc10761
commit b5985efdd1
4 changed files with 31 additions and 31 deletions
@@ -17,11 +17,11 @@ export default class extends BridgeComponent {
notifyBridgeOfConnect() {
this.send("connect", {}, message => {
this.setInsets(message.data)
this.#setInsets(message.data)
})
}
setInsets({ top, right, bottom, left }) {
#setInsets({ top, right, bottom, left }) {
const root = document.documentElement.style
root.setProperty("--injected-safe-inset-top", `${top}px`)
root.setProperty("--injected-safe-inset-right", `${right}px`)