Skip to content

Instantly share code, notes, and snippets.

View patrickbolle's full-sized avatar

Patrick Bollenbach patrickbolle

View GitHub Profile
@tobiasdalhof
tobiasdalhof / index.js
Last active October 24, 2022 03:00
Shopify variant listener
/**
* This class contains general helper methods.
*/
class Helper {
/**
* @param {String} name
* @returns {String|null}
*/
static getQueryParameter(name) {
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]')