Skip to content

Commit

Permalink
Remove II migration page
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanosdev committed Oct 28, 2022
1 parent 1fc0208 commit 89f5292
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 85 deletions.
2 changes: 0 additions & 2 deletions typescript/service-worker/src/pages/html.ts

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions typescript/service-worker/src/sw/http_request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
} from '../http-interface/canister_http_interface_types';
import { idlFactory } from '../http-interface/canister_http_interface';
import { streamContent } from './streaming';
import { internetIdentityMaintenanceTemplate } from '../pages/internet-identity-maintenance';

const hostnameCanisterIdMap: Record<string, [string, string]> = {
'identity.ic0.app': ['rdmx6-jaaaa-aaaaa-aaadq-cai', 'ic0.app'],
Expand Down Expand Up @@ -413,16 +412,6 @@ export async function handleRequest(request: Request): Promise<Response> {
} catch (e) {
console.error('Failed to fetch response:', e);

if (
['rdmx6-jaaaa-aaaaa-aaadq-cai', 'y2aaj-miaaa-aaaad-aacxq-cai'].includes(
maybeCanisterId.toString()
)
) {
return new Response(internetIdentityMaintenanceTemplate(String(e)), {
headers: { 'Content-Type': 'text/html' },
});
}

return new Response(`Failed to fetch response: ${String(e)}`, {
status: 500,
});
Expand Down
55 changes: 32 additions & 23 deletions typescript/service-worker/test_utils/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 89f5292

Please sign in to comment.