mirror of https://github.com/dessant/buster
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
374 B
JavaScript
15 lines
374 B
JavaScript
function setup() {
|
|
const url = new URL(browser.runtime.getURL('/src/setup/index.html'));
|
|
url.searchParams.set(
|
|
'session',
|
|
new URL(window.location.href).searchParams.get('session')
|
|
);
|
|
url.searchParams.set('port', window.location.port);
|
|
|
|
const frame = document.createElement('iframe');
|
|
frame.src = url.href;
|
|
document.body.appendChild(frame);
|
|
}
|
|
|
|
setup();
|