From d5a84a8a94f4929e40a9dc9d2af921773938c9ad Mon Sep 17 00:00:00 2001 From: Marutian Date: Tue, 19 Feb 2019 13:16:24 +0900 Subject: [PATCH] Change copy to clipboard library --- package.json | 2 +- src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js | 2 +- src/app/tabs/compile-tab.js | 2 +- src/app/ui/copy-to-clipboard.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 31624ddaa8..69c0b6b90c 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,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 282a5bd34d..af895bb1fa 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 EventManager = require('../../../../lib/events') 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 15730c2a75..b455b55850 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -3,7 +3,7 @@ const async = require('async') const $ = require('jquery') 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 remixTests = require('remix-tests') var Compiler = require('remix-solidity').Compiler diff --git a/src/app/ui/copy-to-clipboard.js b/src/app/ui/copy-to-clipboard.js index c1875a62e3..02d357437c 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