fix(extensions): define platform info to prevent renderer crash (#25357)

This commit is contained in:
Samuel Maddock 2020-09-15 12:29:32 -04:00 committed by GitHub
parent fbf32f697f
commit 45170fdbd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 133 additions and 41 deletions

View file

@ -0,0 +1,12 @@
/* global chrome */
chrome.runtime.onMessage.addListener((message, sender, reply) => {
switch (message) {
case 'getPlatformInfo':
chrome.runtime.getPlatformInfo(reply);
break;
}
// Respond asynchronously
return true;
});