Skip to content

Commit

Permalink
Table doesn't show by default (bug introduced by previous patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
calixteman committed Sep 18, 2018
1 parent 31bf42b commit d1f23d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions webextension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

const VERSION = "0.2.9";
const VERSION = "0.3.0";

async function fetchProductDetails() {
const url = "https://product-details.mozilla.org/1.0/firefox_versions.json";
Expand Down Expand Up @@ -261,10 +261,10 @@ if (container) {
};
function getLSData(id) {
const s = localStorage.getItem(LSName);
if (id === "") {
if (typeof id === "undefined") { // Function has no arguments
return s === null ? new Object() : JSON.parse(s);
} else {
return s === null ? false : JSON.parse(s).hasOwnProperty(id);
return s !== null && s !== "" && JSON.parse(s).hasOwnProperty(id);
}
}
function setLSData(id) {
Expand Down
2 changes: 1 addition & 1 deletion webextension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Bugzilla Crash Stop",
"description": "This webextension inserts table with data under crash signatures to check if the patches had an effect on crash numbers.",
"version": "0.2.9",
"version": "0.3.0",
"manifest_version": 2,
"applications": {
"gecko": {
Expand Down

0 comments on commit d1f23d8

Please sign in to comment.