WorkerLocation: origin プロパティ
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2016年9月.
origin は WorkerLocation オブジェクトのプロパティで、このワーカーのオリジン (origin) を返します。
値
文字列です。
例
js
// On this page, returns the origin
const result = self.location.origin; // 'https://big.rakal.top:443' を返す
仕様書
| Specification |
|---|
| HTML> # dom-workerlocation-origin> |
ブラウザーの互換性
Loading…
関連情報
- 所属先の
WorkerLocation