Skip to content

Commit ccac199

Browse files
committed
fix: wrong member name
1 parent d857471 commit ccac199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsHelper/spicetifyWrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,14 +1487,14 @@ Spicetify.ContextMenu = (function () {
14871487
}
14881488
set shouldAdd(func) {
14891489
if (typeof func == "function") {
1490-
this.shouldAdd = func.bind(this);
1490+
this._shouldAdd = func.bind(this);
14911491
} else {
14921492
throw "Spicetify.ContextMenu.Item: shouldAdd is not a function";
14931493
}
14941494
}
14951495
set onClick(func) {
14961496
if (typeof func == "function") {
1497-
this.onClick = func.bind(this);
1497+
this._onClick = func.bind(this);
14981498
} else {
14991499
throw "Spicetify.ContextMenu.Item: onClick is not a function";
15001500
}

0 commit comments

Comments
 (0)