mirror of
https://github.com/driftywinds/driftywinds.github.io.git
synced 2025-12-19 11:03:32 +00:00
Add source information to app.html
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user