在右上方推送通知

时间:2019-05-13 14:20:40

标签: angular angular-devkit

我想在Windows的右上角显示推送通知。我能够将其显示在右下角,但我希望它显示在右上角。

我正在使用角度和节点。

const notifier = require('node-notifier');
const path = require('path');

notifier.notify(
  {
    title: 'My awesome title',
    message: 'Hello from node, Mr. User!',
    sound: true, // Only Notification Center or Windows Toasters
    wait: true // Wait with callback, until user action is taken against notification
  },
  function(err, response) {
    // Response is response from notification
  }
);

0 个答案:

没有答案