So I had a sample that wasn't working in firefox. It had code like ths
"use strict";
var devicePixelRation = window.devicePixelRatio || 1;
That worked fine on Chrome but broke on Firefox with
TypeError: setting a property that has only a getter
So first thing I learned something I didn't know. Variables declared with var
in the global scope