Various UI Fixes and Updates

Closes #188
Closes #185
Closes #187
This commit is contained in:
Qstick 2018-01-25 22:01:53 -05:00
parent 3beac03c00
commit 54e9f88648
89 changed files with 2354 additions and 995 deletions

View file

@ -1,8 +1,8 @@
import $ from 'jquery';
const absUrlRegex = /^(https?:)?\/\//i;
const apiRoot = window.Sonarr.apiRoot;
const urlBase = window.Sonarr.urlBase;
const apiRoot = window.Lidarr.apiRoot;
const urlBase = window.Lidarr.urlBase;
function isRelative(xhr) {
return !absUrlRegex.test(xhr.url);
@ -31,7 +31,7 @@ function addRootUrl(xhr) {
function addApiKey(xhr) {
xhr.headers = xhr.headers || {};
xhr.headers['X-Api-Key'] = window.Sonarr.apiKey;
xhr.headers['X-Api-Key'] = window.Lidarr.apiKey;
}
export default function() {