UNPKG

@storybook/addon-storyshots-puppeteer

Version:
12 lines (11 loc) 409 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.constructUrl = void 0; const url_1 = require("url"); const constructUrl = (storybookUrl, id) => { const url = new url_1.URL(storybookUrl); url.pathname = url.pathname.replace(/\/$/, '').concat('/iframe.html'); url.searchParams.append('id', id); return url.toString(); }; exports.constructUrl = constructUrl;