diff --git a/spec/text-editor-component-spec.coffee b/spec/text-editor-component-spec.coffee index b2ef2ec51..ad1f50d74 100644 --- a/spec/text-editor-component-spec.coffee +++ b/spec/text-editor-component-spec.coffee @@ -2815,7 +2815,7 @@ describe "TextEditorComponent", -> clipboardWrittenTo = false spyOn(require('ipc'), 'send').andCallFake (eventName, selectedText) -> if eventName is 'write-text-to-selection-clipboard' - require('clipboard').writeText(selectedText, 'selection') + require('../src/native-clipboard').writeText(selectedText, 'selection') clipboardWrittenTo = true atom.clipboard.write('') diff --git a/src/browser/atom-application.coffee b/src/browser/atom-application.coffee index 7c15d0f2a..950cb6b78 100644 --- a/src/browser/atom-application.coffee +++ b/src/browser/atom-application.coffee @@ -256,7 +256,7 @@ class AtomApplication clipboard = null ipc.on 'write-text-to-selection-clipboard', (event, selectedText) -> - clipboard ?= require 'clipboard' + clipboard ?= require '../native-clipboard' clipboard.writeText(selectedText, 'selection') # Public: Executes the given command.