File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,18 @@ <h1>Config.json5 Generator</h1>
169
169
170
170
<h2>Platforms</h2>
171
171
-->
172
+ <!-- Test Notification -->
173
+ < div class ="platform-section ">
174
+ < h3 > Test Notification</ h3 >
175
+ < label for ="testNotificationEnabled "> Enable test notification on startup:</ label >
176
+ < select id ="testNotificationEnabled ">
177
+ < option value ="select "> Select option</ option >
178
+ < option value ="true "> true</ option >
179
+ < option value ="false " selected > false</ option >
180
+ </ select >
181
+ < div class ="small-text "> Set to false if you don't want to receive test notifications on startup</ div >
182
+ </ div >
183
+
172
184
<!-- Platform 1: Discord Bot -->
173
185
< div class ="platform-section ">
174
186
< h3 > Discord Bot</ h3 >
@@ -738,9 +750,15 @@ <h3>Zenless Zone Zero accounts 1</h3>
738
750
} ;
739
751
740
752
function generateConfig ( ) {
753
+ const tnEl = document . getElementById ( 'testNotificationEnabled' ) ;
754
+ const testNotifyEnabled = tnEl ? ( tnEl . value === 'true' ) : false ;
741
755
const config = {
742
756
loglevel : 'info' ,
743
757
userAgent : 'Custom fork of HoyoLabAuto: github.com/torikushiii/hoyolab-auto' ,
758
+ // Test notification settings
759
+ testNotification : {
760
+ enabled : testNotifyEnabled ,
761
+ } ,
744
762
platforms : [
745
763
{
746
764
id : 1 ,
@@ -1051,4 +1069,4 @@ <h3>Zenless Zone Zero accounts 1</h3>
1051
1069
}
1052
1070
</ script >
1053
1071
</ body >
1054
- </ html >
1072
+ </ html >
You can’t perform that action at this time.
0 commit comments