freetube/_scripts
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
..
ProcessLocalesPlugin.js Adding web support to dev-runner (#2729) 2022-10-18 08:50:32 -04:00
build.js Small build config cleanup (#2621) 2022-09-26 16:17:04 -04:00
dev-runner.js Adding web support to dev-runner (#2729) 2022-10-18 08:50:32 -04:00
webpack.main.config.js Remove unused ft-grid component and __static variable (#2744) 2022-10-19 09:09:49 +08:00
webpack.renderer.config.js Remove unused ft-grid component and __static variable (#2744) 2022-10-19 09:09:49 +08:00
webpack.web.config.js Implement `getRegionData` in web (#2743) 2022-10-22 10:31:34 +02:00
webpack.workers.config.js Remove node-loader as we don't have any binary/native node modules (#2576) 2022-09-15 08:52:46 +08:00