diff --git a/src/js/main.js b/src/js/main.js index d10c436..04a5ce4 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -39,8 +39,6 @@ $(function() { let $currentInput = $usernameInput.focus(); let encryptionKey; - let clipboard = new Clipboard('.copyable'); - let roomId = window.location.pathname.length ? window.location.pathname : null; if (!roomId) return; @@ -418,31 +416,6 @@ $(function() { isActive = false; }; - clipboard.on('success', function(e) { - $(e.trigger).tooltip({ - title: 'Copied!', - trigger: 'manual', - placement: 'auto' - }); - $(e.trigger).tooltip('show'); - setTimeout(function() { - $(e.trigger).tooltip('hide'); - }, 2000); - e.clearSelection(); - }); - - clipboard.on('error', function(e) { - $(e.trigger).tooltip({ - title: 'Press ⌘C to copy', - trigger: 'manual', - placement: 'auto' - }); - $(e.trigger).tooltip('show'); - setTimeout(function() { - $(e.trigger).tooltip('hide'); - }, 2000); - }); - // Nav links $('a#settings-nav').click(function() { $('#settings-modal').modal('show'); diff --git a/src/views/index.mustache b/src/views/index.mustache index 329e2e1..3ce4168 100644 --- a/src/views/index.mustache +++ b/src/views/index.mustache @@ -197,9 +197,7 @@ - -