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

Glcanvas #69

Merged
merged 3 commits into from
Oct 14, 2024
Merged

Glcanvas #69

merged 3 commits into from
Oct 14, 2024

Conversation

zeitlinger
Copy link
Member

No description provided.

@zeitlinger zeitlinger self-assigned this Oct 12, 2024
Comment on lines +49 to +55
${scripts}
${viewerScript}
</body>` : `
<head>
<meta charset="UTF-8">
${scripts}
${viewerScript}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scripts are added twice, inside body and head, this can have side-effects for other games

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you seen the ? : expression?

</div>
</body>
<body>
<canvas id='glcanvas' style="margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; position: absolute; z-index: 0;"></canvas>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is specific to clash, for other games it would add a full-screen canvas

In the viewer for clash, you can add this directly with body.append(...) in the JS, in a synchronous manner

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only in the clash special logic

@coyotte508 coyotte508 merged commit 62294ab into master Oct 14, 2024
1 of 3 checks passed
@coyotte508 coyotte508 deleted the glcanvas branch October 14, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants