mirror of
https://github.com/simonw/datasette.git
synced 2026-05-27 12:34:37 +02:00
Ran Prettier
npx prettier 'datasette/static/*[!.min|bundle].js' --write
This commit is contained in:
parent
8568320a23
commit
0eb78dec9a
1 changed files with 9 additions and 2 deletions
|
|
@ -410,7 +410,12 @@ class NavigationSearch extends HTMLElement {
|
|||
}
|
||||
|
||||
saveRecentItem(match) {
|
||||
if (typeof localStorage === "undefined" || !match || !match.name || !match.url) {
|
||||
if (
|
||||
typeof localStorage === "undefined" ||
|
||||
!match ||
|
||||
!match.name ||
|
||||
!match.url
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -559,7 +564,9 @@ class NavigationSearch extends HTMLElement {
|
|||
const recentHtml = recentItems.length
|
||||
? `<div class="results-heading">Recent</div>${recentItems
|
||||
.map((match, index) => this.resultItemHtml(match, index))
|
||||
.join("")}<div class="recent-actions"><button type="button" class="clear-recent" data-clear-recent-items>Clear recent</button></div>`
|
||||
.join(
|
||||
"",
|
||||
)}<div class="recent-actions"><button type="button" class="clear-recent" data-clear-recent-items>Clear recent</button></div>`
|
||||
: "";
|
||||
const defaultHtml = defaultMatches
|
||||
.map((match, index) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue