1
    2
    3
    4
    5
    6
    7
    8
    9
   10

content / test / data / workers / worker_with_import_and_fetch.js [blame]

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// The service/shared worker for the network isolation key test.
const url_params = new URLSearchParams(location.search);
let import_script_url = url_params.get("import_script_url");
let fetch_url = url_params.get("fetch_url");
importScripts(import_script_url);
fetch(fetch_url);