mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
fix bookmarklet, React 19 no longer allows 'javascript:' urls
This commit is contained in:
@@ -41,7 +41,7 @@ function NextUnreadBookmarklet() {
|
|||||||
const { _ } = useLingui()
|
const { _ } = useLingui()
|
||||||
|
|
||||||
const baseUrl = window.location.href.substring(0, window.location.href.lastIndexOf("#"))
|
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 (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
|
|||||||
@@ -3,13 +3,16 @@ quarkus.http.port=8082
|
|||||||
quarkus.http.test-port=8085
|
quarkus.http.test-port=8085
|
||||||
quarkus.http.enable-compression=true
|
quarkus.http.enable-compression=true
|
||||||
|
|
||||||
# static files
|
# http cache
|
||||||
## make sure the webapp is always up to date
|
## make sure the webapp is always up to date
|
||||||
quarkus.http.filter.index-html.header."Cache-Control"=no-cache
|
quarkus.http.filter.index-html.header."Cache-Control"=no-cache
|
||||||
quarkus.http.filter.index-html.matches=/
|
quarkus.http.filter.index-html.matches=/
|
||||||
## make sure the openapi documentation is always up to date
|
## make sure the openapi documentation is always up to date
|
||||||
quarkus.http.filter.openapi.header."Cache-Control"=no-cache
|
quarkus.http.filter.openapi.header."Cache-Control"=no-cache
|
||||||
quarkus.http.filter.openapi.matches=/openapi[.](json|yaml)
|
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
|
# security
|
||||||
quarkus.http.auth.basic=true
|
quarkus.http.auth.basic=true
|
||||||
|
|||||||
Reference in New Issue
Block a user