See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
// npm i axios stream-concat | |
import { pipeline } from 'stream/promises' | |
import StreamConcat from 'stream-concat' | |
import axios from 'axios' | |
const API_01 = 'http://localhost:3000' | |
const API_02 = 'http://localhost:4000' | |
const streams = (await Promise.all([ | |
axios({ |
// Get or Create a new tab id (accessible only on the tab itself) | |
var tabID = sessionStorage.tabID ? sessionStorage.tabID : sessionStorage.tabID = Math.random(); | |
// Get all connected tabs from localStorage (shared between all tabs) | |
var connectedTabs = localStorage.getItem("ConnectedTabs"); | |
// Validate if tabID was created | |
if (tabID) { | |
if (!connectedTabs) { | |
// If there's no tabs connected yet, create an array with itself tabID | |
var tabs = [tabID]; |