beakerbrowser / beaker

An experimental peer-to-peer Web browser
https://beakerbrowser.com/
MIT License
6.75k stars 546 forks source link

Mounting a `.ui` folder into another hyperdrive not working as expected #1938

Open tomsansome opened 3 years ago

tomsansome commented 3 years ago

Describe the Bug I have 2 Hyperdrives:

When I mount the .ui folder from Drive 1 into Drive 2, the mounted .ui folder does not override all page-serving as expected.

To Reproduce

  1. Visit this link for Drive 1: hyper://bb2921f4517abd9b2caccb1d312a94c87c71a0effa1a43a56b8ba34ead2d99fc/template-test.html.
  2. Observe .ui folder. Note: inside .ui/ui.js we have a setup function which is similar to the suggested code in the frontend UI docs. See screenshot 1 below 👇
  3. Visit this link for Drive 2: hyper://45256fc59850959a7d59e9beedc16e382f719d2a0ebcc501a6d6a4fa9811bf1a/.
  4. Observe that index.html does not have a surrounding template from the mounted .ui folder as expected.

Expected Behavior

Drive 2 should use the .ui folder to override all page-serving. Drive 2 index.html should have the styling from the mounted .ui folder.

Screenshots

Environment

🌟 Appreciate any help here, thank you very much! 🌟