@@ -102,6 +102,16 @@ chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
reGetData('')
})
}, 100);
+ case 'notifications':
+ chrome.notifications.create(null, {
+ type: 'basic',
+ iconUrl: 'img/48.png',
+ title: message.title,
+ message: message.message
+ });
+ case 'playMusic':
+ let musicUrl = message.url ? message.url : 'https://cunchu.site/work/assist/lingyin.wav'
+ new Audio(musicUrl).play()
default:
break;
}
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "脚本助手",
- "version": "1.1.25",
+ "version": "1.1.26",
"description": "脚本助手",
"icons": {
"16": "./img/16.png",