Merge pull request #374 from colkito/bug/hide-copy-button-without-flash
#356 Fixed copy button if have not flash installed
This commit is contained in:
commit
7e2035ebeb
|
@ -288,6 +288,7 @@ function spec() {
|
||||||
},
|
},
|
||||||
function (w_cb) {
|
function (w_cb) {
|
||||||
self.getBlockFromFile(function(err,b) {
|
self.getBlockFromFile(function(err,b) {
|
||||||
|
if (!b) return w_cb('Could not find block ' + self.startBlock);
|
||||||
h=b.hash;
|
h=b.hash;
|
||||||
setImmediate(function(){
|
setImmediate(function(){
|
||||||
return w_cb(err);
|
return w_cb(err);
|
||||||
|
|
|
@ -49,14 +49,15 @@ angular.module('insight')
|
||||||
};
|
};
|
||||||
|
|
||||||
client.on('mousedown', onMousedown);
|
client.on('mousedown', onMousedown);
|
||||||
client.on('noflash wrongflash', function() {
|
|
||||||
return elm.remove();
|
|
||||||
});
|
|
||||||
|
|
||||||
scope.$on('$destroy', function() {
|
scope.$on('$destroy', function() {
|
||||||
client.off('mousedown', onMousedown);
|
client.off('mousedown', onMousedown);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
clip.on('noFlash wrongflash', function() {
|
||||||
|
return elm.remove();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue