Jump to content

Elvis Reis

Members
  • Posts

    2
  • Joined

  • Last visited

Elvis Reis's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. 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
  2. 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
×
×
  • Create New...