Skip to content

Commit

Permalink
Fixed pretty print visible (#92)
Browse files Browse the repository at this point in the history
* Fixed pretty print visible

* Updated discovery
  • Loading branch information
exdis authored May 20, 2024
1 parent 7eff4d0 commit f4d9140
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 13 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
## 1.14.0
## 1.14.1 (20-05-2024)

* Fixed issue when "Pretty print" bar is visible during the loading in Chrome
* Updated `discovery` to `1.0.0-beta.83`

## 1.14.0 (02-04-2024)

* Updated `discovery` to `1.0.0-beta.82`
* Renamed `report` page to `discovery`
* Added "Copy URL" button

## 1.13.5
## 1.13.5 (07-03-2024)

* Updated `discovery` to `1.0.0-beta.81`
* Added "What's new" page
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsondiscovery",
"version": "1.14.0",
"version": "1.14.1",
"description": "Browser (Chrome, Firefox) extension for JSON discovery",
"author": "[email protected]",
"license": "MIT",
Expand All @@ -11,7 +11,7 @@
"build": "NODE_ENV=production node ./scripts/build.js && node ./scripts/zip.js"
},
"devDependencies": {
"@discoveryjs/discovery": "1.0.0-beta.82",
"@discoveryjs/discovery": "1.0.0-beta.83",
"@discoveryjs/json-ext": "^0.5.7",
"css-tree": "^2.3.1",
"esbuild": "^0.20.1",
Expand Down
8 changes: 8 additions & 0 deletions src/content/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,17 @@ async function checkLoaded(settings) {
if (pre) {
disableElement(pre);

// Chrome placed formatter container before <pre> in mid 2023
// https://issues.chromium.org/issues/40282442
if (firstElement !== pre) {
disableElement(firstElement);
}

// Chrome moved formatter container after <pre>
// https://github.com/chromium/chromium/commit/1ca95a7aedd55cafb40f11e839a02bf8cc7ef99d
if (pre.nextElementSibling?.classList?.contains('json-formatter-container')) {
disableElement(pre.nextElementSibling);
}
}
}

Expand Down

0 comments on commit f4d9140

Please sign in to comment.