mirror of
https://github.com/miniflux/v2.git
synced 2025-08-06 17:41:00 +00:00
Offline-pwa update
This commit is contained in:
parent
fbc3294f30
commit
d88b8a1d3b
5 changed files with 29 additions and 10 deletions
|
@ -241,7 +241,7 @@ func sanitizeAttributes(baseURL, tagName string, attributes []html.Attribute) ([
|
|||
func getExtraAttributes(tagName string) ([]string, []string) {
|
||||
switch tagName {
|
||||
case "a":
|
||||
return []string{"rel", "target", "referrerpolicy"}, []string{`rel="noopener noreferrer"`, `target="_blank"`, `referrerpolicy="no-referrer"`}
|
||||
return []string{"rel", "target", "referrerpolicy"}, []string{`rel="noopener noreferrer"`, `target="_blank"`, `referrerpolicy="strict-origin"`}
|
||||
case "video", "audio":
|
||||
return []string{"controls"}, []string{"controls"}
|
||||
case "iframe":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue