Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decaffeinate lib/ui/notifications #762

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions lib/ui/notifications.coffee

This file was deleted.

32 changes: 32 additions & 0 deletions lib/ui/notifications.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
'use babel'
import remote from 'remote';

export default {
// notes: [],
// window: remote.getCurrentWindow(),
//
activate() {
// document.addEventListener('focusin', () => {
// this.clear();
// });
},

enabled() { return atom.config.get('julia-client.uiOptions.notifications'); },

show(msg, force) {
// if (!force && (!this.enabled() || !!document.hasFocus())) { return; }
// const n = new Notification("Julia Client",
// {body: msg});
// n.onclick = () => {
// this.window.focus();
// };
// this.notes.push(n);
},

// clear() {
// for (let note of this.notes) {
// note.close();
// }
// this.notes = [];
// }
};