From 937e772f247928b0ed0e691ece6907f8af2ca50e Mon Sep 17 00:00:00 2001 From: Danilo Woznica Date: Tue, 18 Jun 2024 12:03:46 +0000 Subject: [PATCH] fix(preview): allows clipboard api --- sandpack-client/src/clients/runtime/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandpack-client/src/clients/runtime/index.ts b/sandpack-client/src/clients/runtime/index.ts index b41ea5014..693198630 100644 --- a/sandpack-client/src/clients/runtime/index.ts +++ b/sandpack-client/src/clients/runtime/index.ts @@ -87,7 +87,7 @@ export class SandpackRuntime extends SandpackClient { this.iframe.setAttribute( "allow", - "accelerometer; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; clipboard-write;" + "accelerometer; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; clipboard-read; clipboard-write;" ); }