Skip to content

Instantly share code, notes, and snippets.

View octaviogl's full-sized avatar

Octavio González octaviogl

  • Emergya
  • Sevilla
View GitHub Profile
@ryangoree
ryangoree / url-api-polyfill.js
Last active August 30, 2024 21:04
URL Polyfill
(function() {
if (typeof URL != 'function') {
rewriteURL();
} else if (!('searchParams' in new URL(window.location))) {
rewriteURL();
}
function rewriteURL() {
// Overwrite URL if no searchParams property exists.