Skip to content
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 = [];
// }
};