Chrome extension: Using Inline Installation does not give success/failure callbacks

时间:2015-06-26 09:56:05

标签: google-chrome google-chrome-extension

I am able to install my chrome extension using 'Inline Installation method', from my webpage. But I am not getting any success/ failure callbacks. My page has link to the extension in the head section of the page and the code as follows

  chrome.webstore.install('url to my extension', function () {
        //  Success!
        console.log('success!');
    }, function (err) {
        //  Error :(
        console.log('failed!');
    });

0 个答案:

没有答案