SDA-3167 Added version check to not use built in snipping tool when /clip flag is not available

This commit is contained in:
Mattias Gustavsson
2021-05-12 14:00:39 +02:00
parent bd8ab732a8
commit 4d47e58c43
2 changed files with 5 additions and 2 deletions

View File

@@ -177,7 +177,7 @@
},
"optionalDependencies": {
"auto-update": "file:auto_update",
"screen-snippet": "git+https://github.com/symphonyoss/ScreenSnippet2.git#v2.0.0",
"screen-snippet": "git+https://github.com/symphonyoss/ScreenSnippet2.git#v2.1.0",
"screen-share-indicator-frame": "git+https://github.com/symphonyoss/ScreenShareIndicatorFrame.git#v1.4.10",
"swift-search": "git+https://github.com/symphonyoss/SwiftSearch.git#v2.0.2"
},

View File

@@ -46,7 +46,10 @@ class ScreenSnippet {
}
}
this.isOldWindows =
isWindowsOS && parseInt(os.release().split('.')[0], 10) < 10;
isWindowsOS &&
(parseInt(os.release().split('.')[0], 10) < 10 ||
parseInt(os.release().split('.')[2], 10) < 15002);
logger.info(
`screen-snippet-handler: isOldWindows ${
this.isOldWindows