mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Target to .NET 4.6.1, Update SignalR, Owin, Nancy (#84)
* Target .net 4.6.1 * Update to SignalR 2.2.2 * Fix Socks Reference in NZBDrone.Common * UI Fixes, Build Fixes * Update Nancy to 1.4.4 * Upgrade Microsoft Owin to 3.1.0 * Delete npm-shrinkwrap.json * Fix SignalR Messages
This commit is contained in:
parent
fbe6bfc78e
commit
f460f630c3
317 changed files with 9128 additions and 38017 deletions
|
@ -1,4 +1,4 @@
|
|||
const $ = require('JsLibraries/jquery');
|
||||
import $ from 'jquery';
|
||||
|
||||
const absUrlRegex = /^(https?:)?\/\//i;
|
||||
const apiRoot = window.Sonarr.apiRoot;
|
||||
|
@ -34,9 +34,9 @@ function addApiKey(xhr) {
|
|||
xhr.headers['X-Api-Key'] = window.Sonarr.apiKey;
|
||||
}
|
||||
|
||||
module.exports = function(jQuery) {
|
||||
const originalAjax = jQuery.ajax;
|
||||
jQuery.ajax = function(xhr) {
|
||||
export default function() {
|
||||
const originalAjax = $.ajax;
|
||||
$.ajax = function(xhr) {
|
||||
if (xhr && isRelative(xhr)) {
|
||||
moveBodyToQuery(xhr);
|
||||
addRootUrl(xhr);
|
||||
|
@ -44,4 +44,4 @@ module.exports = function(jQuery) {
|
|||
}
|
||||
return originalAjax.apply(this, arguments);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue