Skip to content

Commit acd93c2

Browse files
author
Alexandre Van de Sande
committed
Removed console logs from mist.js
also fixed an issue where it would force reloads unnecessarily
1 parent 0e2f669 commit acd93c2

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

cmd/mist/assets/ext/mist.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,18 @@
2020
console.log("loaded?");
2121

2222
document.onkeydown = function(evt) {
23+
// This functions keeps track of keyboard inputs in order to allow copy, paste and other features
24+
2325
evt = evt || window.event;
2426
if (evt.ctrlKey && evt.keyCode == 67) {
2527
window.document.execCommand("copy");
26-
console.log("Ctrl-C");
2728
} else if (evt.ctrlKey && evt.keyCode == 88) {
2829
window.document.execCommand("cut");
29-
console.log("Ctrl-X");
3030
} else if (evt.ctrlKey && evt.keyCode == 86) {
3131
window.document.execCommand("paste");
32-
console.log("Ctrl-V");
3332
} else if (evt.ctrlKey && evt.keyCode == 90) {
3433
window.document.execCommand("undo");
35-
console.log("Ctrl-Z");
3634
} else if (evt.ctrlKey && evt.shiftKey && evt.keyCode == 90) {
3735
window.document.execCommand("redo");
38-
console.log("Ctrl-Z");
3936
}
4037
};

cmd/mist/assets/qml/main.qml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ ApplicationWindow {
132132
var existingDomain = matches && matches[1];
133133
if (requestedDomain == existingDomain) {
134134
domainAlreadyOpen = true;
135-
mainSplit.views[i].view.url = url;
135+
136+
if (mainSplit.views[i].view.url != url){
137+
mainSplit.views[i].view.url = url;
138+
}
139+
136140
activeView(mainSplit.views[i].view, mainSplit.views[i].menuItem);
137141
}
138142
}
@@ -888,7 +892,7 @@ ApplicationWindow {
888892
function addPeer(peer) { peerModel.append(peer) }
889893

890894
function setPeerCounters(text) {
891-
peerCounterLabel.text = text
895+
//peerCounterLabel.text = text
892896
}
893897

894898
function timeAgo(unixTs){

0 commit comments

Comments
 (0)