replugged icon indicating copy to clipboard operation
replugged copied to clipboard

Notification API

Open yofukashino opened this issue 1 year ago • 2 comments

An API for in app notification

yofukashino avatar Apr 09 '24 02:04 yofukashino

Deploy Preview for replugged-docs failed.

Name Link
Latest commit 7f6e97c3142723c98d8c17533a491d283e91b6fb
Latest deploy log https://app.netlify.com/sites/replugged-docs/deploys/67f5072982cee7000819bd32

netlify[bot] avatar Apr 08 '25 11:04 netlify[bot]

An example

const notif = replugged.notification.NotificationAPI.coremod("Notification")
notif.notify({
    timeout: 60000,
    type: "danger",
    header: "DANGER",
    gradient: ["#FF0000", "#F00000"],
    content: "CLOSE YOUR CLIENT YOU ARE GETTING TRACKED!"
})

yofukashino avatar Aug 15 '25 21:08 yofukashino