Changes
1 changed files (+1/-15)
-
-
@@ -10,21 +10,7 @@ import { FigmaNode, getStyleRule, NodeStyles } from "./utils";import type { CSSRule } from "./utils"; const copy = async (text: string) => { // workaround for Firefox & Safari which do not need clipboard-write permission let status = { state: "granted" }; try { status = await navigator.permissions.query({ name: ("clipboard-write" as unknown) as PermissionName, }); } catch (e) { // Firefox throws because it doesn't support clipboard-write allowed // by default in secure environments. Safari throws because it does not have // or need navigator.permissions. } if (status.state === "granted") { await navigator.clipboard.writeText(text); } await navigator.clipboard.writeText(text); }; export type InspectorViewProps = {
-