I am doing a Chrome extension to automatically suggest a saveAs window when clicked. I found this in the API, but as soon as I added “downloads” to the sentences, I get a warning:
When trying to install this extension, there were warnings:
* 'downloads' requires Google Chrome dev or newer, and it is a stable channel.
I have no idea what channels are and how I change them.
What is it? Does this mean that anyone who downloads this extension will also have a headache when changing the channel?
My sample code is:
window.onload = function(){ alert(chrome); alert(chrome.downloads); chrome.downloads.download( {url: 'http://www.iana.org/_img/iana-logo-pageheader.png', saveAs: true }, function(res){alert(res);}); }
source share