a11y-outline

web extension to navigate document outlines easily
git clone https://git.ce9e.org/a11y-outline.git

commit
f1543709617cab2db9247a2ad09323072706a28b
parent
f5d2552692d3d1e7015460f53b6bd1f6cc1a60a6
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-01-19 07:52
do not show spinner if no items are found

Diffstat

M outline.js 6 +++++-

1 files changed, 5 insertions, 1 deletions


diff --git a/outline.js b/outline.js

@@ -88,7 +88,11 @@ var renderTree = function(role, dialog) {
   88    88 		var matches = getMatches(role);
   89    89 		var tree = buildTree(matches);
   90    90 
   91    -1 		updateTree(ul, tree, ul.id);
   -1    91 		if (matches.length) {
   -1    92 			updateTree(ul, tree, ul.id);
   -1    93 		} else {
   -1    94 			ul.innerHTML = '<li><em>Nothing found</em></li>';
   -1    95 		}
   92    96 
   93    97 		var getTarget = function(a) {
   94    98 			var href = a.getAttribute('href');