mirror of
https://gitdab.com/cadence/breezewiki.git
synced 2026-03-05 13:40:27 -05:00
error message if script blocked
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
(when (config-true? 'captcha::log)
|
||||
(printf "captcha pass - key ~a [~a]~n" x (get-ip req)))
|
||||
|
||||
(header #"Set-Cookie" (cookie->set-cookie-header (make-cookie "captcha" "key" #:path "/" #:max-age (* 60 60 24 365 10))))]
|
||||
(header #"Set-Cookie" (cookie->set-cookie-header (make-cookie "captcha" "key" #:path "/" #:max-age (* 60 60 24 365 10) #:http-only? #t #:secure? #t)))]
|
||||
[(= y 0)
|
||||
(when (config-true? 'captcha::log)
|
||||
(printf "captcha fail - key ~a instead of ~a [~a]~n" x (get-key-solution req) (get-ip req)))]
|
||||
|
||||
@@ -53,8 +53,8 @@ var jsonpData = {}
|
||||
var proxy = new Proxy(jsonpData, {get(obj, prop) { return value => obj[prop] = value }})
|
||||
END
|
||||
)
|
||||
(script (@ (async) (src ,wiki-page-script-url)))
|
||||
(script (@ (async) (src ,siteinfo-script-url)))
|
||||
(script (@ (async) (src ,wiki-page-script-url) (onerror "proxy.wikipage({error: {code: 'script blocked', info: 'Fandom connection failed or was blocked by your browser. Check any browser extensions that may block third-party scripts, then reload the page.'}})")))
|
||||
(script (@ (async) (src ,siteinfo-script-url) (onerror "proxy.siteinfo({error: {code: 'script blocked', info: 'Fandom connection failed or was blocked by your browser. Check any browser extensions that may block third-party scripts, then reload the page.'}})")))
|
||||
(script (@ (type "module") (src ,(get-static-url "jsonp.js")))))
|
||||
#:req req
|
||||
#:source-url source-url
|
||||
|
||||
Reference in New Issue
Block a user