Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 391b3cb

Browse files
committed
url decode, fix icon from play popup
1 parent e08d42f commit 391b3cb

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ app.allowRendererProcessReuse = true;
1313

1414
function createWindow() {
1515
protocol.registerFileProtocol('local', (request, callback) => {
16-
callback({ path: request.url.substring(8).split('?')[0] });
16+
callback({ path: decodeURIComponent(request.url).substring(8).split('?')[0] });
1717
});
1818

1919
// Create the browser window.

src/src/less/item.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@
109109
left: 8px;
110110

111111
img {
112-
max-width: 100%;
113-
max-height: 100%;
112+
position: absolute;
113+
margin: auto;
114+
max-width: 36px;
115+
max-height: 36px;
114116
}
115117
}

src/src/modules/update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const fs = require('fs');
88

99
export default class Update {
1010

11-
version = '1.4.27';
11+
version = '1.4.28';
1212

1313
/**
1414
* @type {string}

0 commit comments

Comments
 (0)