Skip to content

Commit 8bad638

Browse files
committed
fix(darwin): future-proof setting the sharing type
1 parent 303e071 commit 8bad638

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

v2/internal/frontend/desktop/darwin/Application.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
[result SetTitle:safeInit(title)];
3232
[result Center];
3333

34-
if (contentProtection == 1) {
34+
if (contentProtection == 1 &&
35+
[result.mainWindow respondsToSelector:@selector(setSharingType:)]) {
3536
[result.mainWindow setSharingType:NSWindowSharingNone];
3637
}
3738

0 commit comments

Comments
 (0)