From d59b779c0adf4e257d9068e8e62acc3ea7719b80 Mon Sep 17 00:00:00 2001 From: Wliu <50Wliu@users.noreply.github.com> Date: Thu, 4 Jan 2018 21:01:20 -0500 Subject: [PATCH] :art: --- src/clipboard.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/clipboard.js b/src/clipboard.js index 451293a28..eafc04d6f 100644 --- a/src/clipboard.js +++ b/src/clipboard.js @@ -1,7 +1,5 @@ -/** @babel */ - -import crypto from 'crypto' -import {clipboard} from 'electron' +const crypto = require('crypto') +const {clipboard} = require('electron') // Extended: Represents the clipboard used for copying and pasting in Atom. // @@ -9,12 +7,13 @@ import {clipboard} from 'electron' // // ## Examples // -// ```coffee +// ```js // atom.clipboard.write('hello') // -// console.log(atom.clipboard.read()) # 'hello' +// console.log(atom.clipboard.read()) // 'hello' // ``` -export default class Clipboard { +module.exports = +class Clipboard { constructor () { this.reset() } @@ -60,7 +59,7 @@ export default class Clipboard { // * `text` The {String} clipboard text. // * `metadata` The metadata stored by an earlier call to {::write}. readWithMetadata () { - let text = this.read() + const text = this.read() if (this.signatureForMetadata === this.md5(text)) { return {text, metadata: this.metadata} } else {