Skip to content

Commit

Permalink
Fix twitch video stream
Browse files Browse the repository at this point in the history
  • Loading branch information
lmachens committed Oct 10, 2023
1 parent 9c54e73 commit 381dab4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@electron-forge/maker-rpm": "6.4.2",
"@electron-forge/maker-squirrel": "6.4.2",
"@electron-forge/maker-zip": "6.4.2",
"electron": "26.3.0",
"electron": "27.0.0",
"electronmon": "2.0.2"
},
"dependencies": {
Expand Down
5 changes: 5 additions & 0 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ const App = () => {
Title(),
newLink,
websiteNav,
createElement("button", {
className: "support",
innerText: "Join Discord for Support",
onclick: () => shell.openExternal("https://discord.gg/NTZu8Px"),
}),
createElement("button", {
className: "support",
innerText: "Gaming Apps & Tools",
Expand Down
3 changes: 1 addition & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ const createWindow = () => {
delete details.responseHeaders["x-frame-options"];
delete details.responseHeaders["Content-Security-Policy"];
details.responseHeaders["content-security-policy"] =
"default-src 'self' 'unsafe-inline' * data: blob:";

"default-src 'self' 'unsafe-inline' 'unsafe-eval' * data: blob:";
const setCookieHeaders =
details.responseHeaders["Set-Cookie"] ||
details.responseHeaders["set-cookie"];
Expand Down

0 comments on commit 381dab4

Please sign in to comment.