Reinstate save

This commit is contained in:
Daoud Clarke 2023-11-07 21:06:44 +00:00
parent b28ec062ca
commit d8a3e29282
3 changed files with 5 additions and 5 deletions

Binary file not shown.

View file

@ -75,8 +75,8 @@ export default define('save', class extends HTMLLIElement {
return; return;
} }
if (localStorage.length > 0) { const key = this.__getOldestCurationKey();
const key = this.__getOldestCurationKey(); if (key !== null) {
const value = JSON.parse(localStorage.getItem(key)); const value = JSON.parse(localStorage.getItem(key));
console.log("Value", value); console.log("Value", value);
const url = CURATION_URL + value['type']; const url = CURATION_URL + value['type'];

View file

@ -59,10 +59,10 @@
<!-- Javasript entrypoint --> <!-- Javasript entrypoint -->
{#<script src="/static/src/index.js" type="module"></script>#} {#<script src="/static/src/index.js" type="module"></script>#}
<header class="search-menu compact"> <header class="search-menu compact">
<!-- <ul> <ul>
<li is="${save}"></li> <li is="mwmbl-save"></li>
</ul> </ul>
<div><a href="/accounts/login/">Login</a> <a href="/accounts/signup/">Sign up</a> </div> --> <div><a href="/accounts/login/">Login</a> <a href="/accounts/signup/">Sign up</a> </div>
<a href="/"> <a href="/">
<div class="branding"> <div class="branding">
<img class="brand-icon" src="/static/images/logo.svg" width="40" height="40" alt="mwmbl logo"> <img class="brand-icon" src="/static/images/logo.svg" width="40" height="40" alt="mwmbl logo">