atom-html-preview
atom-html-preview copied to clipboard
Promise.done is deprecated.
Atom now uses ES6 Promises instead of Q. Call promise.then instead of promise.done
Promise.done (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:1148:5)
Object.toggle (/Users/dev/.atom/packages/atom-html-preview/lib/atom-html-preview.coffee:108:10)
atom-workspace.subscriptions.add.atom.commands.add.atom-html-preview:toggle (/Users/dev/.atom/packages/atom-html-preview/lib/atom-html-preview.coffee:57:26)
CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
<unknown> (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)
+1
+1
+1
Deprecated calls
Atom now uses ES6 Promises instead of Q. Call promise.then instead of promise.done
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
+1
➕ 1⃣
+1
+1
+1
I am completely new to atom and github. Can someone please teach me how to fix the deprecation with the code given above?