Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tangled
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eriksson monteiro
tangled
Commits
92e54b8d
Commit
92e54b8d
authored
Oct 19, 2022
by
Eriksson Monteiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update millix bar
parent
5395387c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
chrome/browser/resources/millix/millix_bar.html
chrome/browser/resources/millix/millix_bar.html
+1
-0
chrome/browser/resources/millix/millix_bar.js
chrome/browser/resources/millix/millix_bar.js
+19
-0
chrome/browser/resources/millix/strings.js
chrome/browser/resources/millix/strings.js
+1
-0
No files found.
chrome/browser/resources/millix/millix_bar.html
View file @
92e54b8d
...
...
@@ -11,6 +11,7 @@
<script
src=
"vendor/jquery.js"
></script>
<script
src=
"vendor/jquery.nicescroll.js"
></script>
<script
src=
"vendor/moment.min.js"
></script>
<!-- import of strings.js is a requirement the loadtimedata library -->
<script
src=
"strings.js"
></script>
<script
src=
"config.js"
></script>
<script
src=
"millix_bar.js"
></script>
...
...
chrome/browser/resources/millix/millix_bar.js
View file @
92e54b8d
...
...
@@ -398,6 +398,24 @@ cr.define('millix_bar', function() {
}
}
// onMillixBarMessage is being used to receive data from chromium c++ core
function
onMillixBarMessage
(
data
)
{
if
(
data
.
type
===
'
wallet_update_state
'
)
{
if
(
data
.
action
.
type
===
'
UNLOCK_WALLET
'
)
{
unlockWallet
();
}
else
if
(
data
.
action
.
type
===
'
LOCK_WALLET
'
)
{
lockWallet
();
}
else
if
(
data
.
action
.
type
===
'
UPDATE_NOTIFICATION_VOLUME
'
)
{
changeVolume
(
data
.
action
.
payload
);
}
}
else
if
(
data
.
type
===
'
api_config_update
'
)
{
connectToWallet
(
data
.
config
);
}
}
function
onLastTransactionUpdate
(
lastTransaction
)
{
if
(
walletLocked
)
{
return
;
...
...
@@ -525,6 +543,7 @@ cr.define('millix_bar', function() {
onTransaction
,
showNewAdvertisement
,
onVisibilityChange
,
onMillixBarMessage
,
updateVersion
};
});
...
...
chrome/browser/resources/millix/strings.js
View file @
92e54b8d
// import of strings.js is a requirement the loadtimedata library
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