Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Fix screenshare and some other things not working
Browse files Browse the repository at this point in the history
  • Loading branch information
verticalsync committed Mar 13, 2024
1 parent 72fac4d commit c89af0e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions meta/me.verticalsync.Sunroof.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@
<image type="source">https://vencord.dev/assets/screenshots/vesktop-3-appstream.png</image>
</screenshot>
</screenshots>
<release version="1.5.6" date="2024-02-24" type="stable">
<url>https://github.com/verticalsync/Sunroof/releases/tag/1.5.6</url>
<description>
<p>Fixes</p>
<ul>
<li>Fix screenshare and some other things not working</li>
</ul>
</description>
</release>
<release version="1.5.5" date="2024-02-24" type="stable">
<url>https://github.com/verticalsync/Sunroof/releases/tag/1.5.5</url>
<description>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sunroof",
"version": "1.5.5",
"version": "1.5.6",
"private": true,
"description": "",
"keywords": [],
Expand Down
2 changes: 1 addition & 1 deletion src/main/arrpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function initArRPC() {
mainWin.webContents
// Safety: Result of JSON.stringify should always be safe to equal
// Also, just to be super super safe, invite is regex validated above
.executeJavaScript(`Vesktop.openInviteModal(${JSON.stringify(invite)})`)
.executeJavaScript(`Sunfloor.openInviteModal(${JSON.stringify(invite)})`)
.then(callback);
});
} catch (e) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/screenShare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function registerScreenShareHandler() {
if (video) {
const stream = await request.frame
.executeJavaScript(
`Vesktop.Components.ScreenShare.openScreenSharePicker(${JSON.stringify([video])},true)`
`Sunfloor.Components.ScreenShare.openScreenSharePicker(${JSON.stringify([video])},true)`
)
.catch(() => null);
if (stream === null) return callback({});
Expand All @@ -62,7 +62,7 @@ export function registerScreenShareHandler() {
}

const choice = await request.frame
.executeJavaScript(`Vesktop.Components.ScreenShare.openScreenSharePicker(${JSON.stringify(data)})`)
.executeJavaScript(`Sunfloor.Components.ScreenShare.openScreenSharePicker(${JSON.stringify(data)})`)
.then(e => e as StreamPick)
.catch(e => {
console.error("Error during screenshare picker", e);
Expand Down

0 comments on commit c89af0e

Please sign in to comment.