M2 Zaubertool Add-On
| const TEAM_HOSTS=["team.m2-loesung.de","team-staging.m2-loesung.de"],PROCESSING_RE=/https:\/\/(team|team-staging)\.m2-loesung\.de\/cases\/[^/]+\/processing\//i;function shouldInjectUrl(t){try{return PROCESSING_RE.test(t||"")}catch(t){return!1}}async function ensureInjected(t,e){try{return void await browser.tabs.sendMessage(t,{id:"zt_ping"})}catch(t){}try{await browser.tabs.executeScript(t,{file:"content_scripts_case.js",allFrames:!0}),console.debug("Zaubertool[bg]: injected content_scripts_case.js into tab",t,e)}catch(s){console.warn("Zaubertool[bg]: failed to inject content_scripts_case.js",s,t,e)}}browser.webNavigation.onHistoryStateUpdated.addListener(t=>{try{const e=t.url||"";shouldInjectUrl(e)&&ensureInjected(t.tabId,e)}catch(t){}},{url:[{hostContains:"team.m2-loesung.de"},{hostContains:"team-staging.m2-loesung.de"}]}),browser.tabs.onUpdated.addListener((t,e,s)=>{try{if("complete"!==e.status)return;const n=s&&s.url?s.url:"";shouldInjectUrl(n)&&ensureInjected(t,n)}catch(t){}}),console.debug("Zaubertool[bg]: background script initialized"); |
+3
-3
| { | ||
| "manifest_version": 2, | ||
| "name": "Zaubertool Add-On", | ||
| "version": "1.1.5", | ||
| "version": "1.1.6", | ||
| "description": "Add-On f\u00fcr das M2-Zaubertool", | ||
@@ -27,4 +27,4 @@ "icons": { | ||
| "matches": [ | ||
| "https://team.m2-loesung.de/cases*", | ||
| "https://team-staging.m2-loesung.de/cases*" | ||
| "https://team.m2-loesung.de/*", | ||
| "https://team-staging.m2-loesung.de/*" | ||
| ], | ||
@@ -31,0 +31,0 @@ "js": [ |
+1
-1
@@ -98,4 +98,4 @@ <!DOCTYPE html> | ||
| <p style="font-size: small">Version: 1.1.5</p> | ||
| <p style="font-size: small">Version: 1.1.6</p> | ||
| </body> | ||
| </html> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet