Skip to content

Commit 382cfeb

Browse files
Merge pull request #8127 from efb4f5ff-1298-471a-8973-3d47447115dc/hotfix-release-v0.23.11
Hotfix release - v0.23.11
2 parents ee69568 + e3240f4 commit 382cfeb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

_scripts/sigFrameConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ const { readFileSync } = require('fs')
55
const path = join(__dirname, '../src/renderer/sigFrameScript.js')
66
const rawScript = readFileSync(path, 'utf8')
77

8-
const script = rawScript
8+
const script = rawScript.split(/\r?\n/).map(line => line.trim()).filter(line => !line.startsWith('//')).join('')
99

1010
module.exports.sigFrameTemplateParameters = {
1111
sigFrameSrc: `data:text/html,${encodeURIComponent(`<!doctype html><script>${script}</script>`)}`,
12-
sigFrameCspHash: `sha256-${hash('sha256', script, 'base64')}`
12+
sigFrameCspHash: `sha512-${hash('sha512', script, 'base64')}`
1313
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "freetube",
33
"productName": "FreeTube",
44
"description": "A private YouTube client",
5-
"version": "0.23.10",
5+
"version": "0.23.11",
66
"license": "AGPL-3.0-or-later",
77
"main": "./dist/main.js",
88
"private": true,

src/renderer/sigFrameScript.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// This is injected into the sigFrame iframe
22
// See index.ejs and webpack.renderer.config.js
33
window.addEventListener('message', (event) => {
4-
const data = JSON.parse(event.data)
4+
// eslint-disable-next-line @stylistic/semi
5+
const data = JSON.parse(event.data);
56

67
window.parent.postMessage(JSON.stringify({
78
id: data.id,

0 commit comments

Comments
 (0)