element-hq / hydrogen-web

Lightweight matrix client with legacy and mobile browser support
Apache License 2.0
643 stars 124 forks source link

UXP (Pale Moon, Basilisk, etc) not working anymore #855

Open EchedelleLR opened 2 years ago

EchedelleLR commented 2 years ago

Describe the bug Since several releases ago, at least several months or 1 year ago, an Hydrogen update left any UXP-based browser including Pale Moon, Basilisk and others without support.

The interface just loads an empty page with neither error nor warning in console.

To Reproduce Steps to reproduce the behavior:

  1. Open DevTools
  2. Change to console
  3. Go to https://hydrogen.element.io
  4. Wait

Expected behavior Interface loading and at least some error being thrown or just get it working.

Screenshots 2022-08-28-112903_1920x1080_scrot 2022-08-28-112910_1920x1080_scrot 2022-08-28-112931_1920x1080_scrot

Desktop (please complete the following information):

Additional context

EchedelleLR commented 1 year ago

The solution goes by implementing Vite Legacy official plugin as showed at https://github.com/vitejs/vite/tree/main/packages/plugin-legacy.

It is focused in web browsers not supporting some basic features and, as Vite suggests, their defaults require these ones supported in the browser.

This goes in favor of Hydrogen supporting legacy web browsers as claimed.

I made a recent work at https://github.com/mwmbl/front-end/pull/30