Skip to content

Commit

Permalink
Request screen recording permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
tcamin committed Dec 29, 2022
1 parent 76ece0e commit 78fa906
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SBTUITunnelHostServer/Sources/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, GCDWebServerDelegate {
}

func startup() {
if !CGPreflightScreenCaptureAccess() {
CGRequestScreenCaptureAccess()
}

server?.stop()
server = GCDWebServer()

Expand Down

0 comments on commit 78fa906

Please sign in to comment.