Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
acd93c29
Commit
acd93c29
authored
Feb 18, 2015
by
Alexandre Van de Sande
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed console logs from mist.js
also fixed an issue where it would force reloads unnecessarily
parent
0e2f6691
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
mist.js
cmd/mist/assets/ext/mist.js
+2
-5
main.qml
cmd/mist/assets/qml/main.qml
+6
-2
No files found.
cmd/mist/assets/ext/mist.js
View file @
acd93c29
...
@@ -20,21 +20,18 @@
...
@@ -20,21 +20,18 @@
console
.
log
(
"loaded?"
);
console
.
log
(
"loaded?"
);
document
.
onkeydown
=
function
(
evt
)
{
document
.
onkeydown
=
function
(
evt
)
{
// This functions keeps track of keyboard inputs in order to allow copy, paste and other features
evt
=
evt
||
window
.
event
;
evt
=
evt
||
window
.
event
;
if
(
evt
.
ctrlKey
&&
evt
.
keyCode
==
67
)
{
if
(
evt
.
ctrlKey
&&
evt
.
keyCode
==
67
)
{
window
.
document
.
execCommand
(
"copy"
);
window
.
document
.
execCommand
(
"copy"
);
console
.
log
(
"Ctrl-C"
);
}
else
if
(
evt
.
ctrlKey
&&
evt
.
keyCode
==
88
)
{
}
else
if
(
evt
.
ctrlKey
&&
evt
.
keyCode
==
88
)
{
window
.
document
.
execCommand
(
"cut"
);
window
.
document
.
execCommand
(
"cut"
);
console
.
log
(
"Ctrl-X"
);
}
else
if
(
evt
.
ctrlKey
&&
evt
.
keyCode
==
86
)
{
}
else
if
(
evt
.
ctrlKey
&&
evt
.
keyCode
==
86
)
{
window
.
document
.
execCommand
(
"paste"
);
window
.
document
.
execCommand
(
"paste"
);
console
.
log
(
"Ctrl-V"
);
}
else
if
(
evt
.
ctrlKey
&&
evt
.
keyCode
==
90
)
{
}
else
if
(
evt
.
ctrlKey
&&
evt
.
keyCode
==
90
)
{
window
.
document
.
execCommand
(
"undo"
);
window
.
document
.
execCommand
(
"undo"
);
console
.
log
(
"Ctrl-Z"
);
}
else
if
(
evt
.
ctrlKey
&&
evt
.
shiftKey
&&
evt
.
keyCode
==
90
)
{
}
else
if
(
evt
.
ctrlKey
&&
evt
.
shiftKey
&&
evt
.
keyCode
==
90
)
{
window
.
document
.
execCommand
(
"redo"
);
window
.
document
.
execCommand
(
"redo"
);
console
.
log
(
"Ctrl-Z"
);
}
}
};
};
\ No newline at end of file
cmd/mist/assets/qml/main.qml
View file @
acd93c29
...
@@ -132,7 +132,11 @@ ApplicationWindow {
...
@@ -132,7 +132,11 @@ ApplicationWindow {
var
existingDomain
=
matches
&&
matches
[
1
];
var
existingDomain
=
matches
&&
matches
[
1
];
if
(
requestedDomain
==
existingDomain
)
{
if
(
requestedDomain
==
existingDomain
)
{
domainAlreadyOpen
=
true
;
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
);
activeView
(
mainSplit
.
views
[
i
].
view
,
mainSplit
.
views
[
i
].
menuItem
);
}
}
}
}
...
@@ -888,7 +892,7 @@ ApplicationWindow {
...
@@ -888,7 +892,7 @@ ApplicationWindow {
function
addPeer
(
peer
)
{
peerModel
.
append
(
peer
)
}
function
addPeer
(
peer
)
{
peerModel
.
append
(
peer
)
}
function
setPeerCounters
(
text
)
{
function
setPeerCounters
(
text
)
{
peerCounterLabel
.
text
=
text
//
peerCounterLabel.text = text
}
}
function
timeAgo
(
unixTs
){
function
timeAgo
(
unixTs
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment