Skip to content

Commit

Permalink
v1.16.1 - Invisible improvements to nzbfinder profile
Browse files Browse the repository at this point in the history
  • Loading branch information
clutterskull committed Nov 30, 2021
1 parent db00aa7 commit b9972e5
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 287 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nzbunity",
"version": "1.16.0",
"version": "1.16.1",
"license": "MPL-2.0",
"description": "Send and control NZB files directly with SABnzbd or NZBGet download clients.",
"author": "[email protected]",
Expand Down
8 changes: 8 additions & 0 deletions src/background/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,14 @@ class PageUtil {
static readonly backgroundNormal:string = 'rgb(23, 162, 184)';
static readonly backgroundPending:string = 'rgb(156, 166, 168)';

static ready(callback: () => void): void {
if (document.readyState != 'loading'){
callback();
} else {
document.addEventListener('DOMContentLoaded', callback);
}
}

static request(options:RequestOptions):Promise<any> {
options.url = `${window.location.origin}${options.url || ''}`;
return Util.request(options);
Expand Down
Loading

0 comments on commit b9972e5

Please sign in to comment.