diff --git a/index.html b/index.html
index b5e06c60..c2fe0154 100644
--- a/index.html
+++ b/index.html
@@ -8748,7 +8748,7 @@
ctx.fillStyle = averageRGB(colorlist);
}
}
- if ((view === null || view === 4) && elements[pixel.element].state === "gas") {
+ if ((view === null || view === 4) && elements[pixel.element].isGas) {
ctx.globalAlpha = 0.5;
ctx.fillRect((pixel.x-1)*pixelSize, (pixel.y)*pixelSize, pixelSize*3, pixelSize);
ctx.fillRect((pixel.x)*pixelSize, (pixel.y-1)*pixelSize, pixelSize, pixelSize*3);
diff --git a/service-worker.js b/service-worker.js
new file mode 100644
index 00000000..e69de29b