Skip to content

Commit

Permalink
fix(cookie): wrong condition before init
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Jun 24, 2024
1 parent 6247203 commit 9c64e0d
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/WebExtension/css/classic-toolbar.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/WebExtension/js/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
function startCDU() {
let toolbarServer = document.querySelector("script[src*='crossdom/js']");
let head = document.head;
let body = document.querySelector("body");
let body = document.body;
let toolbarDiv = document.querySelector("accessibilitytoolbarGraphic");
let toolbarOnOff = document.getElementById("uci-onoffswitch");
if ((toolbarServer === null) && (head !== null) && (body !== null) && (window.location.href !== 'about:blank')) {
Expand Down
2 changes: 1 addition & 1 deletion dist/serveur/css/classic-toolbar.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/serveur/js/toolbar.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/serveur/js/toolbar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/css/classic-toolbar.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/js/toolbar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/WebExtension/js/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
function startCDU() {
let toolbarServer = document.querySelector("script[src*='crossdom/js']");
let head = document.head;
let body = document.querySelector("body");
let body = document.body;
let toolbarDiv = document.querySelector("accessibilitytoolbarGraphic");
let toolbarOnOff = document.getElementById("uci-onoffswitch");
if ((toolbarServer === null) && (head !== null) && (body !== null) && (window.location.href !== 'about:blank')) {
Expand Down
2 changes: 1 addition & 1 deletion src/serveur/UciCookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function UciStorage() {
*/
this.receiveMessage = function (event) {
// Do we trust the sender of this message?
if (event.origin !== hebergementDomaine && event.data[0] !== 'UCI42')
if (event.origin !== hebergementDomaine || event.data[0] !== 'UCI42')
return;

if (event.data[1]) {
Expand Down

0 comments on commit 9c64e0d

Please sign in to comment.