Elvis Reis
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Elvis Reis
-
-
I noticed the following problem, when I load a local html file like "file:///C:/Users/elvis/Desktop/example/index.html" the chrome functions are not available, but when I load the same file hosted by a server "http://localhost/index.html" the functions is available.
I think it's the same as the way unigui loads files, because the "chrome.runtime.sendMessage" function is not loaded in unigui
Acess Extension
in General
Posted
the problem i have when i use a javascript pro call inside unigui and the same behavior.
the function does not exist within unigui chrome.runtime.sendMessage javascript execution.
the error he mentioned the extension is not linked to the extension but to native browser functions that are not available within unigui.
you can easily simulate the error with the code below.
chrome.runtime.sendMessage({message: "hi"}, (response) => {
console.log(response.message);
});
even without having a listener for the message