A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/StorageAccessHandle/SharedWorker below:

StorageAccessHandle: SharedWorker() method - Web APIs

StorageAccessHandle: SharedWorker() method

Limited availability

Note: See SharedWorker() to understand usage.

Syntax
SharedWorker(aURL)
SharedWorker(aURL, name)
SharedWorker(aURL, options)
Parameters
aURL

See SharedWorker().

name Optional

See SharedWorker().

options Optional

See SharedWorker().

Note: options.sameSiteCookies only supports the value "none", which is the default.

Return value

An unpartitioned SharedWorker object.

Exceptions
SecurityError DomException

Thrown if access was not granted.

See SharedWorker()

Examples
document.requestStorageAccess({ SharedWorker: true }).then(
  (handle) => {
    console.log("SharedWorker access granted");
    handle.SharedWorker(shared_worker_url);
  },
  () => {
    console.log("SharedWorker access denied");
  },
);

Note: See Using the Storage Access API for a more complete example.

Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4