Skip to content

Commit

Permalink
Set source identifier for sources browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrews54757 committed Nov 29, 2024
1 parent fa9df91 commit a74b6ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chrome/player/ui/SourcesBrowser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class SourcesBrowser {
sourceURL.ariaLabel = sourceURL.placeholder;
sourceURL.addEventListener('input', (e) => {
source.url = sourceURL.value;
source.identifier = source.url.split(/[?#]/)[0];
this.updateSources();
});
sourceContainer.appendChild(sourceURL);
Expand Down

0 comments on commit a74b6ad

Please sign in to comment.