diff --git a/electron/src/config.html b/electron/src/config.html
index b49e3b6..5ceafdb 100644
--- a/electron/src/config.html
+++ b/electron/src/config.html
@@ -30,6 +30,7 @@
diff --git a/electron/src/config.js b/electron/src/config.js
index ddf1fa8..b057829 100644
--- a/electron/src/config.js
+++ b/electron/src/config.js
@@ -64,9 +64,17 @@ save = () => { //save id to file
// BrowserWindow.getFocusedWindow().setSize(500, 265);
}
-function adjust_textarea(h) {
- h.style.height = "20px";
- h.style.height = (h.scrollHeight)+"px";
-}
-
-// $($)
\ No newline at end of file
+test = () =>{
+ let tempID = $('#pushed-id-field').val();
+ $.ajax({
+ type: 'POST',
+ data: { "id": tempID, "event": "test" },
+ url: 'https://us-central1-lol-boosted.cloudfunctions.net/sendNotification',
+ success: function (data) {
+ $('#message').html('Sent test notification to Pushed ID "'+tempID+'"');
+ },
+ error: function (data) {
+ $('#message').html("error in http request to firebase");
+ }
+ })
+}
\ No newline at end of file
diff --git a/electron/src/index.css b/electron/src/index.css
index be8665f..c2c78b0 100644
--- a/electron/src/index.css
+++ b/electron/src/index.css
@@ -75,6 +75,6 @@ html,body {
}
input{
- color: #9e9e9e;
+ color: #ffffff;
font-size:1rem !important;
}
\ No newline at end of file
diff --git a/firebase/functions/index.js b/firebase/functions/index.js
index d240e63..27e21b6 100644
--- a/firebase/functions/index.js
+++ b/firebase/functions/index.js
@@ -15,12 +15,25 @@ exports.sendNotification = functions.https.onRequest((request, response) => {
// console.log(request.query);
// response.send("good");
- const formdata = {
- "app_key": process.env.app_key,
- "app_secret": process.env.app_secret,
- "target_type": "pushed_id",
- "content": "Your league game is ready!",
- "pushed_id":request.body.id,
+ let formdata;
+
+ if(request.body.event==='test'){
+ formdata = {
+ "app_key": process.env.app_key,
+ "app_secret": process.env.app_secret,
+ "target_type": "pushed_id",
+ "content": "This is a test notification from boosted. If you got this, everything should be working!",
+ "pushed_id":request.body.id,
+ }
+ }
+ else{
+ formdata = {
+ "app_key": process.env.app_key,
+ "app_secret": process.env.app_secret,
+ "target_type": "pushed_id",
+ "content": "Your league game is ready!",
+ "pushed_id":request.body.id,
+ }
}
https.post({