Grab version from manifest
This commit is contained in:
parent
0f1526a137
commit
713f75821c
@ -4,7 +4,8 @@
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<div style="width:220px;">Bypass Paywalls by Adam
|
||||
<br><a href="options.html">Options</a> | <a href="https://github.com/iamadamdev/bypass-paywalls-firefox" target=”_blank”>GitHub</a> | v1.4.7</div>
|
||||
<div style="width:180px;">Bypass Paywalls by Adam
|
||||
<br><a href="options.html">Options</a> | <a href="https://github.com/iamadamdev/bypass-paywalls-firefox" target=”_blank”>GitHub</a> | <span id="version"></span></div>
|
||||
<script src="version.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
3
version.js
Normal file
3
version.js
Normal file
@ -0,0 +1,3 @@
|
||||
var manifestData = browser.runtime.getManifest();
|
||||
var versionString = 'v' + manifestData.version;
|
||||
document.getElementById('version').innerText = versionString;
|
Loading…
x
Reference in New Issue
Block a user