Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add code-oss
  • Loading branch information
Fryingpannn committed Oct 12, 2024
commit b7dca6876146dcc810897f70a11b7a1ab6d0017a
1 change: 1 addition & 0 deletions lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const allowedProtocols: AllowedProtocol[] = [
"https:",
"pearai:",
"vscode:",
"code-oss:",
];

export function isAllowedUrl(url: URL): boolean {
Expand Down
1 change: 0 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
7 changes: 6 additions & 1 deletion types/url.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
export type AllowedProtocol = "http:" | "https:" | "pearai:" | "vscode:";
export type AllowedProtocol =
| "http:"
| "https:"
| "pearai:"
| "vscode:"
| "code-oss:";

export interface OpenAppParams {
[key: string]: string;
Expand Down