Joel Purra: Developer and more

Fix internal links in the options page

Repository details (talkie)
Project page
Project category
(588 entries)
talkie on Github@joelpurra/talkie
joelpurra on Github@joelpurra
Commit details (974fb460)
Authored at
Joel Purra
Commited at

Commit message

Fix internal links in the options page

- Linking internal options tabs with an (extension root-)absolute URL triggered a full page reload.
  - This means losing page state.
  - For (the `apt`, non-`snap` installation) Firefox on Ubuntu with 8000+ voices, a page reload incurs a significant delay.
- Instead, using hash-only links, rely on the `hashchange` event to switch tabs.
  - This keeps page state, while allowing browser back/forth buttons to work.
  - Particularly useful for keeping the selected voice in the `#voices` tab, since navigating to a specific voice again is not effortless.
- Absolute URLs are still used for links from outside the options page, such as the popup and welcome page.
- Cleaned up the configuration object.
  - Removed dynamic URL assembly, moved hardcoded values to `configuration.json`.
  - Grouped internal/external hardcoded URLs.

Changed files (16)

Commit categories (3)