diff --git a/package.json b/package.json index 68e2ccab346..a2565fd68d6 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "babelify": "^7.3.0", "brace": "^0.8.0", "browserify-reload": "^1.0.3", - "clipboard-copy": "^1.2.0", "component-type": "^1.2.1", + "copy-text-to-clipboard": "^1.0.4", "csjs-inject": "^1.0.1", "csslint": "^1.0.2", "deep-equal": "^1.0.1", diff --git a/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js b/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js index 2997c6d8162..c51ca539950 100644 --- a/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js +++ b/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js @@ -1,6 +1,6 @@ 'use strict' var yo = require('yo-yo') -const copy = require('clipboard-copy') +const copy = require('copy-text-to-clipboard') var remixLib = require('remix-lib') var EventManager = remixLib.EventManager var TreeView = require('../../../ui/TreeView') // TODO setup a direct reference to the UI components diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index c4c1ab4672e..4bf150118ed 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -1,7 +1,7 @@ /* global Worker */ const yo = require('yo-yo') const csjs = require('csjs-inject') -const copy = require('clipboard-copy') +const copy = require('copy-text-to-clipboard') var minixhr = require('minixhr') var tooltip = require('../ui/tooltip') var QueryParams = require('../../lib/query-params') diff --git a/src/app/ui/copy-to-clipboard.js b/src/app/ui/copy-to-clipboard.js index c1875a62e38..02d357437c9 100644 --- a/src/app/ui/copy-to-clipboard.js +++ b/src/app/ui/copy-to-clipboard.js @@ -1,6 +1,6 @@ var yo = require('yo-yo') // -------------- copyToClipboard ---------------------- -const copy = require('clipboard-copy') +const copy = require('copy-text-to-clipboard') var addTooltip = require('./tooltip') // -------------- styling ---------------------- var csjs = require('csjs-inject') @@ -39,4 +39,4 @@ module.exports = function copyToClipboard (getContent, tip = 'Copy value to clip } } return copyIcon -} +} \ No newline at end of file