Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Inline Install for extension not working

I'm trying to use the new chrome inline install feature for extensions (see here: http://code.google.com/chrome/webstore/docs/inline_installation.html).

I can't get it to work unfortunately, and have very little clues to go by. I've added the link element to the head element

<link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/pnnfemgpilpdaojpnkjdgfgbnnjojfik">

and I call

chrome.webstore.install();

in a jquery event handler. I've also verified my domain, however, I'm testing this on a local machine but have a subdomain pointed to my localhost (i.e. testing on dev.getbentobox.com which is mapped to localhost in my hosts file if that makes a difference).

When stepping through my js using the chrome debugger, chrome.webstore.install() is getting called and the function is defined. However, nothing happens - no install, no javascript exception, no console printing, nothing.

any ideas?

like image 594
aloo Avatar asked Dec 20 '11 08:12

aloo


People also ask

How do I enable inline script extensions in Chrome?

As of Chrome 46, inline scripts can be allowed by specifying the base64-encoded hash of the source code in the policy. This hash must be prefixed by the used hash algorithm (sha256, sha384 or sha512). See Hash usage for <script> elements for an example.

How do I force Chrome extensions to install?

Go to the app or extension that you want to automatically install. Under Installation policy, choose Force install or Force install + pin. Click Save.

Why extension is not adding in Chrome?

Make sure you have the latest version of Chrome. Learn how to update Chrome. If you're using a work or school computer, your administrator might not let you install items from the Chrome Web Store. For more help, contact your administrator.

How do I manually install Chrome extensions offline?

Use a CRX Extractor service to unpack the CRX file and turn it into a ZIP file. Locate the ZIP file on your computer and unzip it. Go back to the chrome://extensions/ page and click the Load unpacked extension button and select the unzipped folder for your extension to install it.


1 Answers

Your Chrome Web Store item doesn't show the verified site. If you compare it to the "We Heart It" extension, which can be inline installed from http://weheartit.com/heart-button, it has a green check saying "from weheartit.com". You'll need to edit your Web Store item, and associate your verified site with the item.

like image 186
Mihai Parparita Avatar answered Sep 20 '22 01:09

Mihai Parparita