-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/devel'
- Loading branch information
Showing
9 changed files
with
200 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/****************************************************************************** | ||
* Copyright © 2016 The Waves Developers. * | ||
* * | ||
* See the LICENSE files at * | ||
* the top-level directory of this distribution for the individual copyright * | ||
* holder information and the developer policies on copyright and licensing. * | ||
* * | ||
* Unless otherwise agreed in a custom licensing agreement, no part of the * | ||
* Waves software, including this file, may be copied, modified, propagated, * | ||
* or distributed except according to the terms contained in the LICENSE * | ||
* file. * | ||
* * | ||
* Removal or modification of this copyright notice is prohibited. * | ||
* * | ||
******************************************************************************/ | ||
/** | ||
* @depends {3rdparty/jquery-2.1.0.js} | ||
* @depends {3rdparty/jquery-validate.js} | ||
* @depends {3rdparty/bootstrap.js} | ||
* @depends {3rdparty/big.js} | ||
* @depends {3rdparty/jsbn.js} | ||
* @depends {3rdparty/jsbn2.js} | ||
* @depends {3rdparty/webdb.js} | ||
* @depends {3rdparty/growl.js} | ||
* @depends {crypto/curve25519.js} | ||
* @depends {crypto/curve25519_.js} | ||
* @depends {crypto/base58.js} | ||
* @depends {crypto/blake32.js} | ||
* @depends {crypto/keccak32.js} | ||
* @depends {crypto/passphrasegenerator.js} | ||
* @depends {crypto/sha256worker.js} | ||
* @depends {crypto/3rdparty/cryptojs/aes.js} | ||
* @depends {crypto/3rdparty/cryptojs/sha256.js} | ||
* @depends {crypto/3rdparty/jssha256.js} | ||
* @depends {crypto/3rdparty/seedrandom.js} | ||
* @depends {util/converters.js} | ||
* @depends {util/extensions.js} | ||
*/ | ||
var Waves = (function(Waves, $, undefined) { | ||
"use strict"; | ||
|
||
Waves.checkChromeAccounts = function (accounts){ | ||
|
||
$.each(accounts.WavesAccounts.accounts, function(WavesKey, WavesAccount) { | ||
|
||
if(WavesAccount.password !== undefined || WavesAccount.passphrase !== undefined) { | ||
|
||
var saveData = { | ||
name: WavesAccount.name, | ||
cipher: WavesAccount.cipher, | ||
checksum: WavesAccount.checksum, | ||
publicKey: WavesAccount.publicKey, | ||
address: WavesAccount.address | ||
}; | ||
|
||
accounts.WavesAccounts.accounts[WavesKey] = saveData; | ||
|
||
} | ||
|
||
}); | ||
|
||
chrome.storage.sync.set({'WavesAccounts': accounts.WavesAccounts}, function() { | ||
|
||
}); | ||
|
||
}; | ||
|
||
return Waves; | ||
}(Waves || {}, jQuery)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters