forked from cerc-io/plugeth
Removed console logs from mist.js
also fixed an issue where it would force reloads unnecessarily
This commit is contained in:
parent
0e2f6691bf
commit
acd93c2971
@ -20,21 +20,18 @@
|
||||
console.log("loaded?");
|
||||
|
||||
document.onkeydown = function(evt) {
|
||||
// This functions keeps track of keyboard inputs in order to allow copy, paste and other features
|
||||
|
||||
evt = evt || window.event;
|
||||
if (evt.ctrlKey && evt.keyCode == 67) {
|
||||
window.document.execCommand("copy");
|
||||
console.log("Ctrl-C");
|
||||
} else if (evt.ctrlKey && evt.keyCode == 88) {
|
||||
window.document.execCommand("cut");
|
||||
console.log("Ctrl-X");
|
||||
} else if (evt.ctrlKey && evt.keyCode == 86) {
|
||||
window.document.execCommand("paste");
|
||||
console.log("Ctrl-V");
|
||||
} else if (evt.ctrlKey && evt.keyCode == 90) {
|
||||
window.document.execCommand("undo");
|
||||
console.log("Ctrl-Z");
|
||||
} else if (evt.ctrlKey && evt.shiftKey && evt.keyCode == 90) {
|
||||
window.document.execCommand("redo");
|
||||
console.log("Ctrl-Z");
|
||||
}
|
||||
};
|
@ -132,7 +132,11 @@ ApplicationWindow {
|
||||
var existingDomain = matches && matches[1];
|
||||
if (requestedDomain == existingDomain) {
|
||||
domainAlreadyOpen = true;
|
||||
mainSplit.views[i].view.url = url;
|
||||
|
||||
if (mainSplit.views[i].view.url != url){
|
||||
mainSplit.views[i].view.url = url;
|
||||
}
|
||||
|
||||
activeView(mainSplit.views[i].view, mainSplit.views[i].menuItem);
|
||||
}
|
||||
}
|
||||
@ -888,7 +892,7 @@ ApplicationWindow {
|
||||
function addPeer(peer) { peerModel.append(peer) }
|
||||
|
||||
function setPeerCounters(text) {
|
||||
peerCounterLabel.text = text
|
||||
//peerCounterLabel.text = text
|
||||
}
|
||||
|
||||
function timeAgo(unixTs){
|
||||
|
Loading…
Reference in New Issue
Block a user