Skip to content

Commit

Permalink
fix(addon): workaround is array
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Jan 24, 2024
1 parent 7e26e92 commit 870f184
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.21)
project(venmic LANGUAGES CXX VERSION 3.3.0)
project(venmic LANGUAGES CXX VERSION 3.3.1)

# --------------------------------------------------------------------------------------------------------
# Library options
Expand Down
4 changes: 2 additions & 2 deletions addon/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ struct patchbay : public Napi::ObjectWrap<patchbay>
auto include = to_array<vencord::prop>(data.Get("include"));
auto exclude = to_array<vencord::prop>(data.Get("exclude"));
auto ignore_devices = convert<bool>(data.Get("ignore_devices"));
auto workaround = convert<vencord::prop>(data.Get("workaround"));
auto workaround = to_array<vencord::prop>(data.Get("workaround"));

if (!include && !exclude)
{
Expand All @@ -177,7 +177,7 @@ struct patchbay : public Napi::ObjectWrap<patchbay>
.include = include.value_or(std::vector<vencord::prop>{}),
.exclude = exclude.value_or(std::vector<vencord::prop>{}),
.ignore_devices = ignore_devices.value_or(true),
.workaround = workaround,
.workaround = workaround.value_or(std::vector<vencord::prop>{}),
});

return Napi::Boolean::New(env, true);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"private": false,
"license": "MPL-2.0",
"author": "Curve (https://github.com/Curve)",
"version": "3.3.0",
"version": "3.3.1",
"main": "./lib/index.js",
"types": "./lib/module.d.ts",
"scripts": {
Expand Down

0 comments on commit 870f184

Please sign in to comment.