Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9072a4f

Browse files
committedMar 13, 2014
fix example.html
1 parent f4eb198 commit 9072a4f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
 

‎examples/CreateAndSignTx.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
var run = function() {
5-
var bitcore = require('../bitcore');
5+
bitcore = bitcore || require('../bitcore');
66

77
var priv = 'cTgGUrcro89yUtKeG6gHBAS14r3qp25KwTTxG9d4kEzcFxecuZDm';
88
var amt = '0.005';

‎examples/example.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@
9090
print("Private: " + o.priv);
9191
print("Public: " + o.pub);
9292
print("Addr: " + o.addr);
93+
94+
var module = { exports: {} };
95+
</script>
96+
<script src="./CreateAndSignTx.js"></script>
97+
<script>
98+
run();
9399
</script>
94-
<script src="./createTx.js"></script>
95100
</body>
96101
</html>

0 commit comments

Comments
 (0)
Please sign in to comment.