You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -4247,7 +4247,7 @@ The Media Capture and Streams API enables web applications to capture audio, vid
4247
4247
- The `<input>` element has the `type` attribute set to `file` to create a file input control.
4248
4248
- The `accept` attribute specifies the file types that can be selected, in this case, only image files are allowed (`image/*`).
4249
4249
- The `capture` attribute instructs the browser to open the device's camera when the input is clicked, allowing the user to capture a photo directly from the camera.
4250
-
- If your device is a desktop computer, you'll likely get a typical file picker. Please use a mobile device for this example.
4250
+
-**If your device is a desktop computer, you'll likely get a typical file picker. Please use a mobile device for this example.**
4251
4251
4252
4252
#### Offline Applications and Service Workers
4253
4253
@@ -4261,15 +4261,21 @@ if ('serviceWorker' in navigator) {
[](https://codesandbox.io/p/sandbox/118-implementing-offline-capabilities-with-service-workers-zjm7tx)
4274
+
4275
+
-[^118]CodeSandbox: Implementing Offline Capabilities with Service Workers.
4276
+
4277
+
[^118]:[CodeSandbox: Implementing Offline Capabilities with Service Workers.](https://zjm7tx.csb.app/), last access: October 8, 2024.
4278
+
4273
4279
- The code above demonstrates how to register a Service Worker for offline capabilities.
4274
4280
- First, it checks if the browser supports Service Workers.
4275
4281
- If supported, it registers the Service Worker script (`service-worker.js`) using the `register()` method.
0 commit comments