Skip to content

Commit

Permalink
Unbroke sharing again
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidorakh committed Apr 5, 2024
1 parent 6ed2052 commit e0dbe1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/discord_embedded_sdk/discord.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ window.discord_sdk_set_share_surface_size = function(width,height) {

window.discord_sdk_upload_share_surface = function(request_id, surface_data,width,height) {
// discord.com/api/applications/${applicationId}/attachment
const canvas = document.querySelector('#gmsurface');
const canvas = document.createElement('canvas');
canvas.width = width;
canvas.height = height;
const ctx = canvas.getContext('2d');
Expand Down

0 comments on commit e0dbe1d

Please sign in to comment.