Skip to content

Commit a6b869d

Browse files
committed
Allow to run our unit tests with mocha (where document.queryCommandSupported is not defined)
1 parent 5f5a65c commit a6b869d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/base/browser/canIUse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const BrowserFeatures = {
1919
clipboard: {
2020
writeText: (
2121
platform.isNative
22-
|| document.queryCommandSupported('copy')
22+
|| (document.queryCommandSupported && document.queryCommandSupported('copy'))
2323
|| !!(navigator && navigator.clipboard && navigator.clipboard.writeText)
2424
),
2525
readText: (

0 commit comments

Comments
 (0)