Fixing dodgy usage of localstorage
@@ -30,10 +30,13 @@ const headers = {
"If-Modified-Since": 0
};
+if (typeof window !== 'undefined') {
const satellizerToken = localStorage.getItem("satellizer_token");
+
if (!_.isEmpty(satellizerToken)) {
headers["Authorization"] = `Bearer ${satellizerToken}`;
}
+}
function get(url) {
