Skip to content

Commit

Permalink
fix version to check
Browse files Browse the repository at this point in the history
  • Loading branch information
Refhi committed Jan 4, 2024
1 parent ddbf714 commit f09c381
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,11 @@ function mouseoutW() {


// // lien avec Weda-Helper-Companion



var versionToCheck = "1.1";
// envoi d'instruction au TPE via Weda-Helper-Companion
function sendtpeinstruction(amount) {
function sendToCompanion(url) {
let versionCompanion = "1.0.1"; // attention à le modifier aussi dans sendPrint
let urlWithParam = url + "&versioncheck=" + versionCompanion;
let urlWithParam = url + "&versioncheck=" + versionToCheck;
fetch(urlWithParam)
.then(response => response.json())
.then(data => {
Expand Down Expand Up @@ -199,8 +196,7 @@ function sendPrint() {


function sendToCompanion(url, blob) {
let versionCompanion = "1.0.1"; // attention à le modifier aussi dans sendtpeinstruction
let urlWithParam = url + "&versioncheck=" + versionCompanion;
let urlWithParam = url + "&versioncheck=" + versionToCheck;
fetch(urlWithParam, {
method: 'POST',
headers: {
Expand Down

0 comments on commit f09c381

Please sign in to comment.