window.SwymCallbacks = window.SwymCallbacks || []; window.SwymCallbacks.push(function(swat) { var queryParams = swat.utils.getEncodedAsObject(window.location.search); var sharedHkey = queryParams["hkey"] || queryParams["lid"]; var sharedWishlistContainerElement = document.querySelector("#swym-shared-wishlist-render-container"); swat.ui.renderSharedWishlistInContainer(sharedWishlistContainerElement, sharedHkey, queryParams); });