Skip to content

Commit

Permalink
Fix eslint Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
anapnoe committed Sep 20, 2024
1 parent 6a6e533 commit eff3d7d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1477,18 +1477,18 @@ function setupOnLoadResources() {
content_div.appendChild(script);
setupAdditionalStylesForExtensions();

const iibframe = document.querySelector("#infinite_image_browsing_container_wrapper > iframe");
if(iibframe){
var css = document.querySelector('[rel="stylesheet"][href*="user"]');
var rootRules = Array.from(css.sheet.cssRules).filter(function(cssRule) {
return (cssRule instanceof CSSStyleRule && cssRule.selectorText === ":root");
});
var rootCssText = rootRules[0].cssText;
const iibframe = document.querySelector("#infinite_image_browsing_container_wrapper > iframe");
if (iibframe) {
var css = document.querySelector('[rel="stylesheet"][href*="user"]');
var rootRules = Array.from(css.sheet.cssRules).filter(function(cssRule) {
return (cssRule instanceof CSSStyleRule && cssRule.selectorText === ":root");
});
var rootCssText = rootRules[0].cssText;

iibframe.addEventListener("load", ev => {
const new_style_element = document.createElement("style");
//getComputedStyle(document.documentElement).getPropertyValue('--my-variable-name');
new_style_element.textContent =
iibframe.addEventListener("load", ev => {
const new_style_element = document.createElement("style");
//getComputedStyle(document.documentElement).getPropertyValue('--my-variable-name');
new_style_element.textContent =
`
${rootCssText}
:root body {
Expand Down Expand Up @@ -1655,9 +1655,9 @@ function setupOnLoadResources() {
`;
ev.target.contentDocument.head.appendChild(new_style_element);
});
}
ev.target.contentDocument.head.appendChild(new_style_element);
});
}

}

Expand Down
2 changes: 1 addition & 1 deletion javascript/imageMaskFix.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ function imageMaskResize() {
onAfterUiUpdate(imageMaskResize);
window.addEventListener('resize', imageMaskResize);
*/
*/

0 comments on commit eff3d7d

Please sign in to comment.