mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
19 lines
447 B
JavaScript
19 lines
447 B
JavaScript
'use strict';
|
|
|
|
(function () {
|
|
const urlSearch = window.location.search;
|
|
|
|
const urlMatch = urlSearch.match(/[?&]url=([^&]+)/);
|
|
if (!urlMatch) return;
|
|
|
|
const encodedUrl = urlMatch[1];
|
|
if (!encodedUrl) return;
|
|
|
|
const url = decodeURIComponent(encodedUrl);
|
|
|
|
const linkEl = document.getElementById('get-omnivore-link');
|
|
const loginLinkEl = document.getElementById('omnivore-login');
|
|
|
|
linkEl.href = url;
|
|
loginLinkEl.href = url;
|
|
})();
|