Skip to content

Commit

Permalink
FIX: JS error
Browse files Browse the repository at this point in the history
  • Loading branch information
MjHead committed Sep 7, 2017
1 parent 13457ba commit 353d709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/wapu-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

init: function() {

if ( 'undefined' !== typeof Clipboard.prototype.defaultTarget ) {
if ( 'undefined' !== typeof Clipboard && 'undefined' !== typeof Clipboard.prototype.defaultTarget ) {

wapuCore.objects.clipboard = new Clipboard( '.copy-to-clipboard', {
text: function( trigger ) {
Expand Down

0 comments on commit 353d709

Please sign in to comment.