FreeTube/src/renderer/store/modules
Emma 6e693c6c37
Implement `getRegionData` in web (#2743)
* Implement `getRegionData` in web

- Adjust __dirname to be a more sensible value
- Add `process.env.GEOLOCATION_NAMES` for web builds to avoid having
to blindly try and fetch

* Reverting webpack changes

* Change `indexOf` to `includes`

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>

* Adding a new helper `createWebURL`

It takes a given path to a resource, and it returns an
 easily fetch-able absolute path

* Using `createWebUrl` inside of the locale fetch

* Using `createWebURL` inside of `getRegionData`

* Removing an unnecessary leftover import

* Wait, no I was mistaken

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
2022-10-22 10:31:34 +02:00
..
history.js Simplify playlist / history search and add video stats string for legacy videos 2022-02-19 21:32:34 -05:00
index.js Push Latest Code to Repository 2020-02-16 13:30:00 -05:00
invidious.js Filtering out invidious instances that don't support the API (#2714) 2022-10-13 22:09:15 +00:00
playlists.js Simplify playlist / history search and add video stats string for legacy videos 2022-02-19 21:32:34 -05:00
profiles.js Move colours from the store to the utils helper (#2710) 2022-10-12 06:49:12 +00:00
settings.js Implement `getRegionData` in web (#2743) 2022-10-22 10:31:34 +02:00
subscriptions.js Allow Unsubscribing from Deleted Channels (#2283) 2022-06-03 14:04:50 +00:00
utils.js Implement `getRegionData` in web (#2743) 2022-10-22 10:31:34 +02:00
ytdl.js Remove console.logs (#2606) 2022-09-23 09:04:10 +08:00