feat: support wikipedia embeds and allow scrolling
This commit is contained in:
@@ -147,6 +147,8 @@ const ALLOWED_DOMAINS = new Set([
|
|||||||
"giphy.com",
|
"giphy.com",
|
||||||
"reddit.com",
|
"reddit.com",
|
||||||
"forms.microsoft.com",
|
"forms.microsoft.com",
|
||||||
|
"wikipedia.org",
|
||||||
|
"*.wikipedia.org",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const ALLOW_SAME_ORIGIN = new Set([
|
const ALLOW_SAME_ORIGIN = new Set([
|
||||||
|
|||||||
@@ -1840,8 +1840,6 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
src={
|
src={
|
||||||
src?.type !== "document" ? src?.link ?? "" : undefined
|
src?.type !== "document" ? src?.link ?? "" : undefined
|
||||||
}
|
}
|
||||||
// https://stackoverflow.com/q/18470015
|
|
||||||
scrolling="no"
|
|
||||||
referrerPolicy="no-referrer-when-downgrade"
|
referrerPolicy="no-referrer-when-downgrade"
|
||||||
title="Excalidraw Embedded Content"
|
title="Excalidraw Embedded Content"
|
||||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||||
|
|||||||
Reference in New Issue
Block a user