Skip to content

Commit

Permalink
Fix: Change hide firendlist button image link
Browse files Browse the repository at this point in the history
  • Loading branch information
Elaina69 committed Nov 27, 2024
1 parent a24e6e3 commit ba149f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/src/plugins/hideFriendlist.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as upl from "pengu-upl"
import utils from "../utils/utils"
import { getThemeName } from "../otherThings"

export class HideFriendList {
freezeProperties(object: Object, properties: string[]): void {
Expand All @@ -21,9 +22,9 @@ export class HideFriendList {
let button = document.querySelector(".hideFriendslist > img")

if (!hide) {
button?.setAttribute("src", "//plugins/elainav4/assets/icon/plugins-icons/visible.png")
button?.setAttribute("src", `//plugins/${getThemeName()}/assets/icon/plugins-icons/visible.png`)
}
else button?.setAttribute("src", "//plugins/elainav4/assets/icon/plugins-icons/hide.png")
else button?.setAttribute("src", `//plugins/${getThemeName()}/assets/icon/plugins-icons/hide.png`)
}

createButton = () => {
Expand Down

0 comments on commit ba149f0

Please sign in to comment.