Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
im-neko committed Nov 29, 2019
1 parent e88fc1e commit 39f53ea
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
Binary file added img/youtube-screen.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ html,body {
bottom: 0;
left: 0;
margin: auto;
margin-top: 90px;
margin-top: 80px;
width: 80%;
}

Expand Down Expand Up @@ -45,10 +45,9 @@ header {
top: 0;
left: 0;
width: 100%;
height: 80px;
height: 70px;
background-color: #707070;
color: #FFF;
font-size: 42px;
padding-top: 12px;
padding-left: 120px;
}
14 changes: 5 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body>
<div id="player" style="display:none"></div> <div id="start-page"> <header>WallTube</header>
<img src="https://www.im-neko.dev/assets/youtube-screen.jpg" alt="sample image">
<img src="./img/youtube-screen.jpg" alt="sample image">
<div id="useage">
Useage
<ol>
Expand All @@ -24,7 +24,6 @@
[Attention]
<p> When the video is forbidden to play on embedded player, WallTube will skip the video.</p>
<p>support: <a href="https://twitter.com/im_nuko">Twitter: Im_nuko</a> or <a href="https://github.com/im-neko">Github: Im-neko</a></p>
<p>repository: <a href="https://github.com/im-neko/wall-tube">GitHub</a></p>
</div>

</div>
Expand Down Expand Up @@ -60,21 +59,19 @@
}
});
};

const onPlayerReady = () => {
player.loadPlaylist({
'listType': 'playlist',
'list': listId,
});

}

const onStateChange = (event) => {
switch (event.data) {
case 0:
player.loadPlaylist({
'listType': 'playlist',
'list': listId,
});
return
case 0:
player.nextVideo();
case 1:
ipcRenderer.send('loadStatus', true);
return
Expand All @@ -85,7 +82,6 @@

const onError = (event) => {
console.error(event)
player.nextVideo();
switch (event.data) {
case 2:
player.loadPlaylist({
Expand Down
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ app.on('window-all-closed', function() {
app.on('ready', function() {

let mainWindow = new BrowserWindow({
width: 1000,
height: 800,
frame: false,
transparent: true,
resizable: true,
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": "WallTube",
"version": "1.0.1",
"version": "1.0.2",
"description": "wallpaper app",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 39f53ea

Please sign in to comment.