Partially implemented the Manage Time functionality
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
function createPlatformContentMessages({
|
||||
messageTypes,
|
||||
requestCache,
|
||||
environment
|
||||
}) {
|
||||
const { browser, chrome } = environment;
|
||||
function sendRuntimeMessage(message) {
|
||||
return requestCache ? requestCache.send(message, sendUncached) : sendUncached(message);
|
||||
}
|
||||
function sendUncached(message) {
|
||||
const runtimeApi = typeof browser !== "undefined" ? browser : chrome;
|
||||
|
||||
if (!runtimeApi || !runtimeApi.runtime || !runtimeApi.runtime.sendMessage) {
|
||||
|
||||
Reference in New Issue
Block a user