version up
This commit is contained in:
parent
4bb8b614a7
commit
2322dec6a4
4
index.mm
4
index.mm
@ -96,7 +96,9 @@ void AskForMediaAccess(const v8::FunctionCallbackInfo<Value>& args) {
|
||||
Local<Function> cbFunc = Local<Function>::Cast(args[1]);
|
||||
|
||||
if (auto type = ParseMediaType(mediaType)) {
|
||||
if (@available(macOS 10.14, *)) {
|
||||
NSOperatingSystemVersion minimumSupportedOSVersion = { .majorVersion = 10, .minorVersion = 14, .patchVersion = 0 };
|
||||
BOOL isSupported = [NSProcessInfo.processInfo isOperatingSystemAtLeastVersion:minimumSupportedOSVersion];
|
||||
if (isSupported) {
|
||||
Baton *baton = new Baton;
|
||||
baton->type = type;
|
||||
baton->callback.Reset(isolate, cbFunc);
|
||||
|
@ -11,5 +11,5 @@
|
||||
"install": "node-gyp rebuild",
|
||||
"test": "node index.js"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
"version": "1.0.1"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user