At the top of my HTML page, I have declared the path to my Google Chrome extension:
<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/thekey">
Further down, I inspect of the app is installed, and, if it is, execute a copy command (or paste, or cut):
if (chrome.app.isInstalled) {
document.execCommand("copy");
}
I am trying to serve this page locally, and the URL in the address bar points to localhost. However, none of the clipboard features work. My app currently has the correct clipboardRead and clipboardWrite permissions, and of course the app is installed, but I think it's not executing because my localhost is not pointing to the site listed in "app":"urls".
Is there any way that I can test locally if cut/copy/paste is working correctly through my extension?