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;
}
if (localStorage.length > 0) {
const key = this.__getOldestCurationKey();
const key = this.__getOldestCurationKey();
if (key !== null) {
const value = JSON.parse(localStorage.getItem(key));
console.log("Value", value);
const url = CURATION_URL + value['type'];

View file

@ -59,10 +59,10 @@
<!-- Javasript entrypoint -->
{#<script src="/static/src/index.js" type="module"></script>#}
<header class="search-menu compact">
<!-- <ul>
<li is="${save}"></li>
<ul>
<li is="mwmbl-save"></li>
</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="/">
<div class="branding">
<img class="brand-icon" src="/static/images/logo.svg" width="40" height="40" alt="mwmbl logo">