mirror of
https://github.com/zotero/zotero.git
synced 2026-09-27 01:21:27 +00:00
HiddenBrowser: Lint
This commit is contained in:
parent
ee42f44254
commit
ea3f14f195
1 changed files with 3 additions and 2 deletions
|
|
@ -120,7 +120,6 @@ export class HiddenBrowser {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {String} source - HTTP URL, file: URL, or file path
|
||||
* @param {Object} [options]
|
||||
* @param {Boolean} [options.requireSuccessfulStatus]
|
||||
|
|
@ -225,7 +224,7 @@ export class HiddenBrowser {
|
|||
let response = `${channelInfo.responseStatus} ${channelInfo.responseStatusText}`;
|
||||
Zotero.debug(`HiddenBrowser.load: ${uri} failed with ${response}`, 2);
|
||||
// HiddenBrowser will never get returned so we need to clean it up here
|
||||
this.destroy()
|
||||
this.destroy();
|
||||
throw new Zotero.HTTP.UnexpectedStatusException(
|
||||
{
|
||||
status: channelInfo.responseStatus
|
||||
|
|
@ -235,6 +234,8 @@ export class HiddenBrowser {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue