From e83e9a7f7662cd1dce049c862897d5388947515a Mon Sep 17 00:00:00 2001 From: Thomas Mathews Date: Sat, 15 Apr 2023 09:20:56 -0700 Subject: [PATCH] Clean up, no more docker --- Dockerfile | 5 ----- Makefile | 8 +------- js/ui/state.js | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 515f75d..0000000 --- a/Dockerfile +++ /dev/null @@ -1,5 +0,0 @@ -FROM golang:1.19.1-alpine3.16 -RUN go install git.sr.ht/~tomtom/http-server@latest -ADD . . -CMD http-server -spa -cors -default=index.html -address=:80 . - diff --git a/Makefile b/Makefile index 7614d7b..9f827b1 100644 --- a/Makefile +++ b/Makefile @@ -3,15 +3,9 @@ all: fake @echo "you don't need to build anything." tags: fake - find js -name '*.js' | grep -v noble-secp256k1 | xargs ctags > "$@" + find js -name '*.js' | xargs ctags > "$@" emojiregex: fake @curl -sL 'https://raw.githubusercontent.com/mathiasbynens/emoji-test-regex-pattern/main/dist/latest/javascript.txt' -dist: - rsync -avzP --delete ./ charon:/www/damus.io/web/ - -dist-staging: - rsync -avzP ./ charon:/www/damus.io/web-staging/ - .PHONY: fake diff --git a/js/ui/state.js b/js/ui/state.js index f10b139..d3b3b76 100644 --- a/js/ui/state.js +++ b/js/ui/state.js @@ -92,7 +92,7 @@ function view_timeline_apply_mode(model, mode, opts={}, push_state=true) { pieces.push(pubkey); break; } - history.pushState({mode, opts}, "", "/"+pieces.join("/")); + window.history.pushState({mode, opts}, "", "/"+pieces.join("/")); } el.dataset.mode = mode;