Skip to content

Commit 2cc82d4

Browse files
committed
fixes
1 parent af4ba00 commit 2cc82d4

3 files changed

Lines changed: 18 additions & 2 deletions

File tree

css/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ pre {
3434
}
3535
.nav-drag {
3636
-webkit-user-select: none !important;
37+
-khtml-user-select: none !important;
38+
-moz-user-select: none !important;
39+
-ms-user-select: none !important;
40+
-o-user-select: none !important;
41+
user-select: none !important;
3742
-webkit-app-region: drag !important;
3843
}
3944
.titlethang {
@@ -68,4 +73,8 @@ pre {
6873
}
6974
.log {
7075
padding-top: 15px;
76+
}
77+
textarea {
78+
margin-bottom: 15px;
79+
margin-top: 10px;
7180
}

index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<body>
1111
<nav class="container-fluid fixed-top navbar-inverse bg-primary">
1212
<div class="row">
13-
<div class="col-2 nav-drag btn titlethang text-left nav-drag"><span>{{title}} - {{version}}</span></div>
13+
<div class="col-2 btn titlethang text-left nav-drag"><span>{{title}} - {{version}}</span></div>
1414
<div class="col-8 nav-drag"></div>
1515
<div class="col-1 btn nbtn" id="minim">&boxh;</div>
1616
<div class="col-1 btn nbtn" id="ext">X</div>

js/renderer.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,19 @@ app.get("/log/:msg", function (req, res) {
181181
log(`WebLogger: ${req.params.msg}`);
182182
res.send({status: "Logged successfully", success: true});
183183
});
184+
app.get("/", function (req, res) {
185+
res.send("To log a message, go to: <a href='localhost:3000/log/Your message here'>localhost:3000/log/Your message here</a>");
186+
});
184187

185188
let listener = app.listen(3000, function () {
186189
$("#log").text("");
187190
//Initialize message with version getting from rpf-data server
188191
$.get("https://rpf-data.glitch.me/v", function(version, stat){
189-
log(`Initialized RPFUtility. Current RPFramework version is ${version}. Current RPFUtility version is ${eapp.getVersion()}`);
192+
if (version.length > 8) {
193+
log(`Initialized RPFUtility. Current RPFUtility version is ${eapp.getVersion()}`);
194+
} else {
195+
log(`Initialized RPFUtility. Current RPFramework version is ${version}. Current RPFUtility version is ${eapp.getVersion()}`);
196+
}
190197
log('WebLogger: Your log listener is listening on port ' + listener.address().port);
191198
log('WebLogger: Test it in your browser "localhost:3000/log/Your message here"');
192199
});

0 commit comments

Comments
 (0)