Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
etacarinaea committed Apr 9, 2021
2 parents 12bd076 + 4bec8d6 commit 981f84a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/),
and this project adheres to [Semantic Versioning](https://semver.org/).

## [1.11.3] - 2021-4-10
### Fixed
* Fixes an error when `searchsquare` is undefined and `alwaysopen == true`

## [1.11.2] - 2020-8-8
### Changed
* Made duckduckgo the default search engine in the default config
Expand Down Expand Up @@ -51,6 +55,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
* `filter`: An optional filter, e.g. `opacity(0.2)`


[1.11.3]: https://github.com/etacarinaea/startpage/compare/v1.11.2...v1.11.3
[1.11.2]: https://github.com/etacarinaea/startpage/compare/v1.11.1...v1.11.2
[1.11.1]: https://github.com/etacarinaea/startpage/compare/v1.11.0...v1.11.1
[1.11.0]: https://github.com/etacarinaea/startpage/compare/v1.10.0...v1.11.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "startpage",
"version": "1.11.2",
"version": "1.11.3",
"description": "Overrides the browsers newtab page with a custom startpage.",
"main": "src/index.js",
"devDependencies": {
Expand Down
11 changes: 7 additions & 4 deletions src/js/load-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ function applyConfig(data, callback) {
while(container.firstChild) {
container.removeChild(container.firstChild);
}
normalSquares = [];
let normalSquares = [];
let searchsquare = undefined;
for(let i = 0; i < data.squares.length; i++) {
if(data.squares[i].links) {
normalSquares[i] = new Square(data.squares[i].name,
Expand Down Expand Up @@ -418,9 +419,11 @@ function applyConfig(data, callback) {
maxHeight = normalSquares[i].maxHeight();
}
}
let sMaxHeight = searchsquare.maxHeight();
if(searchsquare && sMaxHeight > maxHeight) {
maxHeight = sMaxHeight;
if(searchsquare) {
let sMaxHeight = searchsquare.maxHeight();
if(sMaxHeight > maxHeight) {
maxHeight = sMaxHeight;
}
}
sqr.css("height", px(maxHeight));
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "startpage",
"short_name": "startpage",
"version": "1.11.2",
"version": "1.11.3",
"description": "Overrides the browsers newtab page with a custom startpage.",
"author": "etacarinaea",

Expand Down

0 comments on commit 981f84a

Please sign in to comment.