Skip to content

Instantly share code, notes, and snippets.

View patrickbolle's full-sized avatar

Patrick Bollenbach patrickbolle

View GitHub Profile
@patrickbolle
patrickbolle / index.js
Created August 7, 2020 13:34 — forked from tobiasdalhof/index.js
Shopify JS Variant Listener
/**
* This class contains general helper methods.
*/
class Helper {
/**
* @param {String} name
* @returns {String|null}
*/
static getQueryParameter(name) {
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]')