We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc36a0f commit 029ac3aCopy full SHA for 029ac3a
notif.js
@@ -2,15 +2,17 @@ const n = new Notification()
2
3
// Passing Arguments here
4
let textVar = args.plainTexts.toString()
5
+let args_0 = textVar.split(",")[0]
6
+let args_1 = textVar.split(",")[1]
7
-n.title = "Emploi du temps 📚"
8
n.subtitle = ""
9
-// Avoid error for passed args
10
-if(textVar === null || textVar === undefined || textVar === ""){
+if(args_1 === null || args_1 === undefined || args_1 === ""){
11
+ n.title = textVar
12
n.body = "Aucun résultat"
13
}else{
- n.body = textVar.split(",")[1]
14
+ n.title = args_0
15
+ n.body = args_1
16
}
17
18
n.threadIdentifier = "Emploi du temps"
0 commit comments