Detect Google Chrome Plugin Version
We have been developing Chrome extensions, and I thought I’d share how we solved a problem we faced.
We needed to be able to detect what version of the plugin was connecting to our servers. If we change our backend, we want to be able to say that older versions of the plugin which are no longer compatible need to update. The chrome API doesn’t offer any way to detect the version directly.
What we did was go in and load the manifest json, and read the version # that way (although it seems it may be buggy if you do it with Jquery). Here is the code:
2 Notes/ Hide
-
detect-invisible liked this
-
imiaou liked this
-
nicolaerusan posted this