mirror of
https://github.com/electron/electron.git
synced 2026-02-14 00:55:19 -05:00
13 lines
247 B
JavaScript
13 lines
247 B
JavaScript
/* global chrome */
|
|
|
|
chrome.runtime.onMessage.addListener((message, sender, reply) => {
|
|
switch (message) {
|
|
case 'getPlatformInfo':
|
|
chrome.runtime.getPlatformInfo(reply);
|
|
break;
|
|
}
|
|
|
|
// Respond asynchronously
|
|
return true;
|
|
});
|