Update ripple-lib dependency in templates:

- Use variable in more places
- Move lodash dep to a variable with integrity check
- Update examples in some places that refer to 1.8.0
This commit is contained in:
mDuo13
2021-03-03 15:23:36 -08:00
parent 2541b59e58
commit 45e9ddd3a8
9 changed files with 28 additions and 25 deletions

View File

@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/lodash@4.17.20/lodash.min.js"></script>
<script src="https://unpkg.com/ripple-lib@1.8.0/build/ripple-latest-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js" integrity="sha512-WFN04846sdKMIP5LKNphMaWzU7YpMyCU245etK3g/2ARYbPK9Ub18eG+ljU96qKRCWh+quCY7yefSmlkQw1ANQ==" crossorigin="anonymous"></script>
<script type="application/javascript" src="assets/js/ripple-lib-1.9.1.min.js"></script>
<script>
console.log(ripple);
var api = new ripple.RippleAPI({server:'wss://s1.ripple.com/'});