UNPKG

@myorders/ember-ui

Version:

Myorders UI provides all the interface components, helpers, services and utilities for building a Myorders extension into the Console.

11 lines (8 loc) 247 B
export default function getUrlParam(key) { const urlParams = new URLSearchParams(window.location.search); let urlParam = urlParams.get(key); if (!urlParam) { urlParam = urlParams.get(`${key}[]`); } return urlParam; }