We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f47380e commit 1168412Copy full SHA for 1168412
testing/beforeEachFile.ts
@@ -114,6 +114,7 @@ Navigator.prototype.clipboard.write = async (data: ClipboardItems): Promise<void
114
115
window.ClipboardItem ??= class {
116
public readonly types: string[];
117
+ public readonly presentationStyle = 'unspecified';
118
119
public constructor(
120
public readonly items: Record<string, string | Blob | PromiseLike<string | Blob>>,
@@ -130,6 +131,10 @@ window.ClipboardItem ??= class {
130
131
return value;
132
}
133
134
+
135
+ public static supports(type: string) {
136
+ return type === 'text/plain' || type === 'text/html' || type.startsWith('image/');
137
+ }
138
};
139
140
window.ClipboardEvent ??= class extends Event {
0 commit comments