Fix attachment to MutationObserver
This commit is contained in:
parent
e4775417fc
commit
19c60d111d
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "flosight-ui",
|
||||
"description": "An open-source frontend for the Flosight API. The Flosight API provides you with a convenient, powerful and simple way to query and broadcast data on the florincoin network and build your own services with it.",
|
||||
"version": "5.0.0-beta.69",
|
||||
"version": "5.0.0-beta.70",
|
||||
"repository": "git://github.com/bitpay/flosight-ui.git",
|
||||
"bugs": {
|
||||
"url": "https://github.com/bitpay/flosight-ui/issues"
|
||||
|
||||
@ -72,16 +72,8 @@
|
||||
<script src="js/clipboard.min.js"></script>
|
||||
<script src="js/main.min.js"></script>
|
||||
<script>
|
||||
var observer = new MutationObserver(function(mutations, observer) {
|
||||
console.log("DOM Mutated");
|
||||
var btns = document.querySelectorAll('.btn-copy');
|
||||
var clipboard = new ClipboardJS(btns);
|
||||
clipboard.on('success', function(e) {
|
||||
console.log(e);
|
||||
});
|
||||
clipboard.on('error', function(e) {
|
||||
console.log(e);
|
||||
});
|
||||
var observer = new window.MutationObserver(function(mutations, observer) {
|
||||
var clipboard = new ClipboardJS('.btn-copy');
|
||||
});
|
||||
|
||||
observer.observe(document, {
|
||||
|
||||
@ -535,6 +535,7 @@ margin-left: 0;
|
||||
width: 16px;
|
||||
outline: none;
|
||||
vertical-align: sub;
|
||||
border: none !important;
|
||||
}
|
||||
|
||||
.btn-expand {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user