-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: janusweb
action: commit
revision:
path_from:
revision_from: efbb278f537f443e56818418e4794be6fe7a54bc:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit efbb278f537f443e56818418e4794be6fe7a54bc
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Sun Jan 30 13:34:12 2022 -0800

    Update navigation to use custom element based client

diff --git a/media/assets/webui/apps/navigation/navigation.js b/media/assets/webui/apps/navigation/navigation.js

index b6b12ea6c4442fcce5a432bd756e5a829d362eb9..

index ..7814b7d6d627776a3c51d9e69e28e2d44c705be8 100644

--- a/media/assets/webui/apps/navigation/navigation.js
+++ b/media/assets/webui/apps/navigation/navigation.js
@@ -16,12 +16,12 @@ elation.elements.define('janus.ui.navigation', class extends elation.elements.ui
   getClient() {
     var node = this;
     while (node && node !== document) {
-      if (node.dataset['elationComponent'] == 'janusweb.client') {
-        return elation.component.fetch(node);
+      if (node instanceof elation.elements.janusweb.client) {
+        return node;
       }
-      node = node.parentNode
+      node = node.parentNode;
     }
-    return elation.component.fetch(document.querySelector('[data-elation-component="janusweb.client"]'));
+    return document.querySelector('janusweb-client');
   }
   updateCurrentURL() {
     var room = this.janusweb.currentroom;
@@ -86,12 +86,12 @@ elation.elements.define('janus.ui.statusindicator', class extends elation.elemen
   getClient() {
     var node = this;
     while (node && node !== document) {
-      if (node.dataset['elationComponent'] == 'janusweb.client') {
-        return elation.component.fetch(node);
+      if (node instanceof elation.elements.janusweb.client) {
+        return node;
       }
-      node = node.parentNode
+      node = node.parentNode;
     }
-    return elation.component.fetch(document.querySelector('[data-elation-component="janusweb.client"]'));
+    return document.querySelector('janusweb-client');
   }
   updateCurrentURL(room) {
     if (!room && this.janusweb.currentroom) {
@@ -334,12 +334,12 @@ elation.elements.define('janus.ui.urlbar', class extends elation.elements.ui.pan
   getClient() {
     var node = this;
     while (node && node !== document) {
-      if (node.dataset['elationComponent'] == 'janusweb.client') {
-        return elation.component.fetch(node);
+      if (node instanceof elation.elements.janusweb.client) {
+        return node;
       }
-      node = node.parentNode
+      node = node.parentNode;
     }
-    return elation.component.fetch(document.querySelector('[data-elation-component="janusweb.client"]'));
+    return document.querySelector('janusweb-client');
   }
   updateRoom() {
     // Remove listeners from previous room

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 16:56:29 2024