Skip to content

Commit 9e441a6

Browse files
committed
fix about
1 parent be1b470 commit 9e441a6

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

app/about.html

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,29 @@
77

88
<title>Editor</title>
99
<meta name="description" content="Editor for Tistory">
10-
<link rel="stylesheet" href="./vendors~editor.min.css">
11-
<link rel="stylesheet" href="./editor.min.css">
10+
<style>
11+
.container {
12+
position: absolute;
13+
left:0; right:0; top:0; bottom:0;
14+
display: flex; align-items: center; justify-content: center;
15+
background: #444;
16+
}
17+
.ready {
18+
color: #eee;
19+
text-align: center;
20+
}
21+
.ready h1 {
22+
font-size: 64px;
23+
margin: 10px;
24+
}
25+
</style>
1226
</head>
1327

1428
<body>
1529
<div class='container app'>
1630
<div class='ready'>
1731
<h1>Editor</h1>
18-
<div>버전: <span id="version"></span></div>
32+
<div><span id="version">latest</span></div>
1933
<div id="needUpgrade" style="display:none; margin-top:10px; padding:15px; border-radius:5px; background-color:#f4f4f4">
2034
새로운 버전 <a href="https://joostory.github.io/tumblr-editor" id="latestVersion"></a>이 준비되었습니다.
2135
</div>
@@ -25,11 +39,11 @@ <h1>Editor</h1>
2539
<script>
2640
const appInfo = require('electron').remote.require('./appInfo')
2741
const latestVersion = appInfo.latestVersion()
28-
document.getElementById("version").innerHTML = appInfo.version
29-
if (appInfo.version != latestVersion) {
30-
document.getElementById("latestVersion").innerHTML = latestVersion
31-
document.getElementById("needUpgrade").style.display = "block"
32-
}
42+
document.getElementById("version").innerHTML = appInfo.version
43+
if (appInfo.version != latestVersion) {
44+
document.getElementById("latestVersion").innerHTML = latestVersion
45+
document.getElementById("needUpgrade").style.display = "block"
46+
}
3347
</script>
3448
</body>
3549

src/main/appInfo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const openWindow = () => {
4444
titleBarStyle: 'hidden',
4545
webPreferences: {
4646
nodeIntegration: true,
47+
contextIsolation: false,
4748
enableRemoteModule: true
4849
},
4950
alwaysOnTop: true

0 commit comments

Comments
 (0)