|
@@ -40,4 +40,24 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
|
$notification.parentNode.removeChild($notification);
|
|
|
});
|
|
|
});
|
|
|
-});
|
|
|
+});
|
|
|
+
|
|
|
+document.addEventListener('DOMContentLoaded', () => {
|
|
|
+ (document.querySelectorAll('#endpointURL') || []).forEach(($urlInput) => {
|
|
|
+ $urlInput.addEventListener('input', (e) => {
|
|
|
+ window.localStorage.setItem("uri", e.target.value);
|
|
|
+ console.log('Storing uri input ' + e.target.value);
|
|
|
+ });
|
|
|
+ });
|
|
|
+});
|
|
|
+
|
|
|
+document.addEventListener('DOMContentLoaded', () => {
|
|
|
+ let data = window.localStorage.getItem("uri");
|
|
|
+ if (data) {
|
|
|
+ (document.querySelectorAll('#endpointURL') || []).forEach(($urlInput) => {
|
|
|
+ $urlInput.setAttribute('value', data);
|
|
|
+ console.log('Setting uri input to ' + data);
|
|
|
+ });
|
|
|
+ }
|
|
|
+});
|
|
|
+
|