FreeTube/src
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
..
data Push Latest Code to Repository 2020-02-16 13:30:00 -05:00
datastores Electron variable at build time instead of at runtime (#2574) 2022-09-15 08:59:09 +00:00
main Remove unused ft-grid component and __static variable (#2744) 2022-10-19 09:09:49 +08:00
renderer Implement `getRegionData` in web (#2743) 2022-10-22 10:31:34 +02:00
utilities Remove unused dependencies (#2278) 2022-05-31 16:15:44 -04:00
constants.js Feature: Screenshot of video (#2221) 2022-05-30 15:24:34 +02:00
index.ejs Remove unused ft-grid component and __static variable (#2744) 2022-10-19 09:09:49 +08:00