Skip to content

Commit

Permalink
N/A
Browse files Browse the repository at this point in the history
  • Loading branch information
margox committed Jul 15, 2020
1 parent e01969c commit beb02a5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 30 deletions.
45 changes: 18 additions & 27 deletions helpers/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,33 +72,24 @@ const getCompressors = () => {
const fetchPlugins = () =>
new Promise((resolve, reject) => {
try {
https.get(
{
port: 443,
host: 'raw.githubusercontent.com',
path: '/repic-app/plugins-manifest/master/plugins.json',
search: 't=' + Date.now(),
rejectUnauthorized: false,
},
(res) => {
let data = ''

res.on('data', (chunk) => {
data += chunk
})

res.on('end', () => {
try {
resolve(JSON.parse(data))
} catch (error) {
reject(error)
}
})

res.on('error', reject)
res.on('abort', reject)
}
)
https.get('https://repic.app/plugins.json?' + Date.now(), (res) => {
let data = ''

res.on('data', (chunk) => {
data += chunk
})

res.on('end', () => {
try {
resolve(JSON.parse(data))
} catch (error) {
reject(error)
}
})

res.on('error', reject)
res.on('abort', reject)
})
} catch (error) {
reject(error)
}
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": "repic-compressor",
"version": "0.1.0",
"version": "0.0.1",
"main": "./index.js",
"author": "Margox",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion renderer-src/pages/compare/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
flex-direction: column;
height: 100vh;
overflow: hidden;
background-color: #fff;
background-color: #eee;
background-image: url(../../assets/images/grid.png);
background-size: 12px 12px;
border-radius: 5px;
Expand Down
2 changes: 1 addition & 1 deletion renderer-src/pages/index/components/titlebar/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
text-align: center;
user-select: none;
-webkit-app-region: drag;
box-shadow: 0 0.5px 0 0 rgba(#000, 0.2);
box-shadow: 0 0.5px 0 0 rgba(#000, 0.15), 0 1px 3px rgba(#000, 0.1);
.app-title {
display: block;
height: $TITLE_BAR_HEIGHT;
Expand Down

0 comments on commit beb02a5

Please sign in to comment.