ive-connect 0.3.0 → 0.3.1
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.
|
@@ -206,7 +206,8 @@ class HandyDevice extends events_1.EventEmitter {
|
|
|
206
206
|
// Handle script data based on type
|
|
207
207
|
if (scriptData.url) {
|
|
208
208
|
// If URL ends with .funscript and it's a direct URL, fetch and upload it
|
|
209
|
-
if (scriptData.url.toLowerCase().endsWith(".funscript")
|
|
209
|
+
if (scriptData.url.toLowerCase().endsWith(".funscript") ||
|
|
210
|
+
scriptData.type === "funscript") {
|
|
210
211
|
try {
|
|
211
212
|
const response = await fetch(scriptData.url);
|
|
212
213
|
if (!response.ok) {
|