Skip to content

Commit

Permalink
Merge branch '0.8' of github.com:Paperback-iOS/extensions-default int…
Browse files Browse the repository at this point in the history
…o 0.8
  • Loading branch information
FaizanDurrani committed Oct 8, 2024
2 parents 0a704c7 + 59897e3 commit fedc382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/Paperback/Paperback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,8 @@ export class KomgaRequestInterceptor implements SourceInterceptor {
return response
}
async interceptRequest(request: Request): Promise<Request> {
//
// Paper's Note: Reopen a new merge request if downloads break again,
// pages stopped loading because of this on iOS 17.0
//
// // NOTE: Doing it like this will make downloads work tried every other method did not work, if there is a better method make edit it and make pull request
// Paper's Note: This hack no longer works on iOS 17
// ORIGINAL NOTE: Doing it like this will make downloads work tried every other method did not work, if there is a better method make edit it and make pull request
// if (request.url.includes('intercept*')) {
// const url = request?.url?.split('*').pop() ?? ''
// request.headers = {
Expand All @@ -103,7 +100,6 @@ export class KomgaRequestInterceptor implements SourceInterceptor {
// request.url = url
// return request
// }

if (request.headers === undefined) {
request.headers = {}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Paperback/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const testServerSettings = async (stateManager: SourceStateManager, reque
// To test these information, we try to make a connection to the server
// We could use a better endpoint to test the connection
const request = App.createRequest({
url: `${komgaAPI}/libraries/`,
url: `${komgaAPI}/libraries`,
method: 'GET',
headers: { authorization: authorization }
})
Expand Down

0 comments on commit fedc382

Please sign in to comment.