Skip to content

Commit

Permalink
Changed version
Browse files Browse the repository at this point in the history
- added js to automatically display the manifest version in the popup
  • Loading branch information
C1aas committed Oct 13, 2022
1 parent a11209b commit 89aeea0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LUH-Tools/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "LUH-Tools",
"description": "Tools for QIS and Stud.IP for students of the LUH.",
"version": "1.0",
"version": "1.1",
"manifest_version": 3,
"permissions": ["storage", "activeTab", "scripting"],
"content_scripts": [
Expand Down
2 changes: 1 addition & 1 deletion LUH-Tools/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h1>LUH-Tools</h1>
Claas klar programmiert
</div>
<span>
Version 10.10.2022
Version <span id="version"></span>
</span>
</div>

Expand Down
4 changes: 4 additions & 0 deletions LUH-Tools/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ var tab = null;


window.addEventListener("load", async function init() {
//insert manifest version
var manifestData = chrome.runtime.getManifest();
document.getElementById("version").innerText = manifestData.version


//load checkbox status
chrome.storage.sync.get(['qis_auto', 'studip_auto'], function (items) {
if(Object.keys(items).length === 0) {
Expand Down

0 comments on commit 89aeea0

Please sign in to comment.