mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 21:47:06 +03:00
empty function fix
This commit is contained in:
@@ -27,7 +27,6 @@ export class RectangleTooltip {
|
|||||||
props.maxHeight ??= "100px";
|
props.maxHeight ??= "100px";
|
||||||
props.maxWidth ??= "300px";
|
props.maxWidth ??= "300px";
|
||||||
this.text = props.text;
|
this.text = props.text;
|
||||||
props.buttonFunction ??= function () {};
|
|
||||||
|
|
||||||
this.container = document.createElement('div');
|
this.container = document.createElement('div');
|
||||||
props.htmlId ??= props.text;
|
props.htmlId ??= props.text;
|
||||||
@@ -70,7 +69,7 @@ export class RectangleTooltip {
|
|||||||
<button className="sponsorSkipObject sponsorSkipNoticeButton"
|
<button className="sponsorSkipObject sponsorSkipNoticeButton"
|
||||||
style ={{float: "right" }}
|
style ={{float: "right" }}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
props.buttonFunction();
|
if (props.buttonFunction) props.buttonFunction();
|
||||||
this.close();
|
this.close();
|
||||||
}}>
|
}}>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user