message: fixed update insets
diff: @@ -33,17 +33,21 @@ function resolveInsets(e: BridgeEvent): Insets | null {
  return null;
  }
  -vkBridge.subscribe((e: BridgeEvent) => {
  - const insets = resolveInsets(e);
  - if (insets) {
  +function updateInsets(insets: Insets) {
  const htmlElement = window.document.documentElement;
  for (let key in insets) {
  - if (insets.hasOwnProperty(key) && insets[key as keyof Insets] > 0) {
  + if (insets.hasOwnProperty(key)) {
  htmlElement.style.setProperty(`--safe-area-inset-${key}`, `${insets[key as keyof Insets]}px`);
  }
  }
  initialState = insets;
  }
  +
  +vkBridge.subscribe((e: BridgeEvent) => {
  + const insets = resolveInsets(e);
  + if (insets) {
  + updateInsets(insets);
  + }
  });
  export default function useInsets(): Insets {
  