mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-08-23 09:37:26 +00:00
URL parsing logic is basically a straight port of how lbryio/lbry-sdk parses lbry URLs. While there's a lot more going on, it should be easier to follow what they're doing this way. Also, added some light unit tests for the URL parsing using jest. Which, of course, needed a babel config. With this, tabOnUpdated was able to be rewritten more elegantly to handle redirects as it delegates a lot of the work to utilities now.
6 lines
143 B
JavaScript
6 lines
143 B
JavaScript
module.exports = {
|
|
presets: [
|
|
['@babel/preset-env', { targets: { node: 'current' } }],
|
|
'@babel/preset-typescript',
|
|
]
|
|
}
|