Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch CI #3

Merged
merged 2 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/Discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ALLOWED_ORIGINS = new Set([
]);

/**
* The embedded application is running in an IFrame either within the main Discord client window or in a popout. The RPC server is always running in the main Discord client window. In either case, the referrer is the correct origin.
* The embedded application is running in an iframe either within the main Discord client window or in a popout. The RPC server is always running in the main Discord client window. In either case, the referrer is the correct origin.
*/
function getRPCServerSource(): [Window, string] {
return [window.parent.opener ?? window.parent, !!document.referrer ? document.referrer : '*'];
Expand Down
22 changes: 6 additions & 16 deletions tsconfig-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,17 @@
"include": [],
"references": [
// lib
{
"path": "."
},
{"path": "."},
// iframe-playground
{
"path": "./examples/iframe-playground/packages/client"
},
{
"path": "./examples/iframe-playground/packages/server"
},
{"path": "./examples/iframe-playground/packages/client"},
{"path": "./examples/iframe-playground/packages/server"},
// activity-starter
{
"path": "./examples/discord-activity-starter/packages/client"
},
{
"path": "./examples/discord-activity-starter/packages/server"
}
{"path": "./examples/discord-embedded-app-starter/packages/client"},
{"path": "./examples/discord-embedded-app-starter/packages/server"}
// nested-messages
// {"path": "./examples/nested-messages"}
// react-colyseus
// {"path": "./examples/react-colyseus/packages/client"},
// {"path": "./examples/react-colyseus/packages/server"}
]
}
}
Loading