Add source information to app.html

This commit is contained in:
foxster-mp4
2023-05-29 14:04:23 -07:00
parent 5ace1991d0
commit ca9457b506
4 changed files with 86 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
const urlSearchParams = new URLSearchParams(window.location.search);
const sourceURL = urlSearchParams.get('source').replaceAll("+", "%2B");
const sourceURL = urlSearchParams.get('source')?.replaceAll("+", "%2B");
// https://stackoverflow.com/a/8943487
const urlRegex = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;