mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 20:44:00 +02:00
Replaced get and post with ajax to prevent XSRF.
Replaced some usages of Console.Writeline with proper logging.
This commit is contained in:
@@ -64,9 +64,14 @@ $(window).load(function () {
|
||||
refreshNotifications();
|
||||
}
|
||||
|
||||
|
||||
function refreshNotifications() {
|
||||
$.get('/notification/Comet', { message: currentMessage }, notificationCallback);
|
||||
$.ajax({
|
||||
url: '/notification/Comet',
|
||||
data: { message: currentMessage },
|
||||
success: function (data) {
|
||||
notificationCallback(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function notificationCallback(data) {
|
||||
@@ -83,10 +88,6 @@ $(window).load(function () {
|
||||
}
|
||||
|
||||
//SetupNotifications();
|
||||
//DisplayMsg("Scanning Series Folder.");
|
||||
|
||||
|
||||
|
||||
function displayMsg(sMsg) {
|
||||
//set the message text
|
||||
$("#msgText").showHtml(sMsg, 150);
|
||||
|
Reference in New Issue
Block a user