Skip to content

Commit

Permalink
block iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed May 19, 2024
1 parent f0a880b commit 34f0797
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Website/src/components/ModConfView/libs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import React from "react";
import { withRequireNewVersion } from "../../hoc/withRequireNewVersion";
import { CodeBlock } from "@Components/CodeBlock";
import { VerifiedIcon } from "@Components/icons/VerifiedIcon";
import { IsolatedFunctionBlockError } from "@Native/IsolatedEval/IsolatedFunctionBlockError";

export const libraries = [
{
Expand All @@ -36,6 +37,8 @@ export const libraries = [
// prevents webview url change
case "a":
return React.createElement(Anchor, props, ...children);
case "iframe":
throw new IsolatedFunctionBlockError("iframe");
default:
return React.createElement(type, props, ...children);
}
Expand Down

0 comments on commit 34f0797

Please sign in to comment.