-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Uzlopak <5059100+Uzlopak@users.noreply.github.com>
- Loading branch information
1 parent
29473db
commit fbdcdb5
Showing
10 changed files
with
112 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* Script that sends keepalive | ||
* fetch request and terminates immediately. | ||
* The request URL is passed as a parameter to this worker | ||
*/ | ||
function sendFetchRequest() { | ||
// Parse the query parameter from the worker's script URL | ||
const urlString = self.location.search.replace("?param=", ""); | ||
postMessage('started'); | ||
fetch(`${urlString}`, { keepalive: true }); | ||
} | ||
|
||
sendFetchRequest(); | ||
// Terminate the worker | ||
self.close(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// GENERATED CONTENT - DO NOT EDIT | ||
// Content was automatically extracted by Reffy into webref | ||
// (https://github.com/w3c/webref) | ||
// Source: Media Queries Level 5 (https://drafts.csswg.org/mediaqueries-5/) | ||
|
||
[Exposed=Window, SecureContext] | ||
partial interface Navigator { | ||
[SameObject] readonly attribute PreferenceManager preferences; | ||
}; | ||
|
||
[Exposed=Window, SecureContext] | ||
interface PreferenceManager { | ||
readonly attribute PreferenceObject colorScheme; | ||
readonly attribute PreferenceObject contrast; | ||
readonly attribute PreferenceObject reducedMotion; | ||
readonly attribute PreferenceObject reducedTransparency; | ||
readonly attribute PreferenceObject reducedData; | ||
}; | ||
|
||
[Exposed=Window, SecureContext] | ||
interface PreferenceObject : EventTarget { | ||
readonly attribute DOMString? override; | ||
readonly attribute DOMString value; | ||
readonly attribute FrozenArray<DOMString> validValues; | ||
|
||
undefined clearOverride(); | ||
Promise<undefined> requestOverride(DOMString? value); | ||
|
||
attribute EventHandler onchange; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters