@homebridge-plugins/homebridge-sharkiq 1.5.3-beta.4 → 1.5.3-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/dist/homebridge-ui/public/index.html +13 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file. This projec
|
|
|
11
11
|
- fix: start a whole-house clean with just the start command, so the vacuum actually leaves the dock instead of being told to clean no areas (#68)
|
|
12
12
|
- chore: log the start command and whether shark accepts it in debug mode, to diagnose a vacuum that will not leave the dock from homekit (#68)
|
|
13
13
|
- style(ui): standardise the custom ui layout and sync the support tab with the readme
|
|
14
|
+
- fix(ui): fall back to the older copy command when the clipboard api is unavailable, so the oauth url copy button works over plain http (#84)
|
|
14
15
|
|
|
15
16
|
## v1.5.2 (2026-07-22)
|
|
16
17
|
|
|
@@ -203,10 +203,21 @@
|
|
|
203
203
|
|
|
204
204
|
copyOauthUrlBtn.addEventListener('click', async () => {
|
|
205
205
|
try {
|
|
206
|
-
|
|
206
|
+
if (navigator.clipboard && window.isSecureContext) {
|
|
207
|
+
await navigator.clipboard.writeText(oauthUrlLink.value);
|
|
208
|
+
} else {
|
|
209
|
+
// The clipboard API only exists on secure (https) pages, and many
|
|
210
|
+
// local Homebridge UIs run over plain http, so fall back to
|
|
211
|
+
// selecting the text and using the older copy command.
|
|
212
|
+
oauthUrlLink.select();
|
|
213
|
+
oauthUrlLink.setSelectionRange(0, oauthUrlLink.value.length);
|
|
214
|
+
if (!document.execCommand('copy')) {
|
|
215
|
+
throw new Error('copy command rejected');
|
|
216
|
+
}
|
|
217
|
+
}
|
|
207
218
|
homebridge.toast.success('OAuth URL copied to clipboard.', 'Copied');
|
|
208
219
|
} catch {
|
|
209
|
-
homebridge.toast.error('Unable to copy
|
|
220
|
+
homebridge.toast.error('Unable to copy automatically - please select the URL and copy it manually.', 'Error');
|
|
210
221
|
}
|
|
211
222
|
});
|
|
212
223
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@homebridge-plugins/homebridge-sharkiq",
|
|
3
3
|
"displayName": "SharkIQ Plugin",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "1.5.3-beta.
|
|
5
|
+
"version": "1.5.3-beta.5",
|
|
6
6
|
"description": "A Homebridge plugin to connect your Shark Vacuum to homebridge.",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Bubba8291",
|