forked from Archives/Athou_commafeed
fix bookmarklet, React 19 no longer allows 'javascript:' urls
This commit is contained in:
@@ -41,7 +41,7 @@ function NextUnreadBookmarklet() {
|
||||
const { _ } = useLingui()
|
||||
|
||||
const baseUrl = window.location.href.substring(0, window.location.href.lastIndexOf("#"))
|
||||
const href = `javascript:window.location.href='${baseUrl}next?category=${categoryId}&order=${order}&t='+new Date().getTime();`
|
||||
const href = `${baseUrl}next?category=${categoryId}&order=${order}`
|
||||
|
||||
return (
|
||||
<Box>
|
||||
|
||||
@@ -3,13 +3,16 @@ quarkus.http.port=8082
|
||||
quarkus.http.test-port=8085
|
||||
quarkus.http.enable-compression=true
|
||||
|
||||
# static files
|
||||
# http cache
|
||||
## make sure the webapp is always up to date
|
||||
quarkus.http.filter.index-html.header."Cache-Control"=no-cache
|
||||
quarkus.http.filter.index-html.matches=/
|
||||
## make sure the openapi documentation is always up to date
|
||||
quarkus.http.filter.openapi.header."Cache-Control"=no-cache
|
||||
quarkus.http.filter.openapi.matches=/openapi[.](json|yaml)
|
||||
## make sure /next always redirects to the next unread entry
|
||||
quarkus.http.filter.next.header."Cache-Control"=no-cache
|
||||
quarkus.http.filter.next.matches=/next
|
||||
|
||||
# security
|
||||
quarkus.http.auth.basic=true
|
||||
|
||||
Reference in New Issue
Block a user