Merge of Insiders features tied to 'Caribbean Red' funding goal

This commit is contained in:
squidfunk
2021-09-23 08:53:51 +02:00
parent 62742b4f0d
commit 377b4d648f
32 changed files with 228 additions and 198 deletions

View File

@@ -28,7 +28,8 @@ import {
startWith
} from "rxjs/operators"
import { createElement, getElement } from "~/browser"
import { getElement } from "~/browser"
import { h } from "~/utilities"
/* ----------------------------------------------------------------------------
* Functions
@@ -54,8 +55,7 @@ export function getLocationHash(): string {
* @param hash - Location hash
*/
export function setLocationHash(hash: string): void {
const el = createElement("a")
el.href = hash
const el = h("a", { href: hash })
el.addEventListener("click", ev => ev.stopPropagation())
el.click()
}