incyclist-services 1.7.46 → 1.7.47

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.
@@ -135,12 +135,11 @@ let RouteDownloadService = (() => {
135
135
  }
136
136
  waitForVideoDir(observer) {
137
137
  if (this.isMobile()) {
138
+ this.logEvent({ message: 'setting fixed video dir on mobile' });
138
139
  try {
139
- const getVideoDir = this.getBindings()?.downloadManager?.getVideoDir;
140
- if (getVideoDir) {
141
- const videoDir = getVideoDir();
142
- return Promise.resolve(videoDir);
143
- }
140
+ const videoDir = this.getBindings()?.downloadManager?.getVideoDir?.();
141
+ this.logEvent({ message: 'video dir set', videoDir });
142
+ return Promise.resolve(videoDir);
144
143
  }
145
144
  catch { }
146
145
  }
@@ -132,12 +132,11 @@ let RouteDownloadService = (() => {
132
132
  }
133
133
  waitForVideoDir(observer) {
134
134
  if (this.isMobile()) {
135
+ this.logEvent({ message: 'setting fixed video dir on mobile' });
135
136
  try {
136
- const getVideoDir = this.getBindings()?.downloadManager?.getVideoDir;
137
- if (getVideoDir) {
138
- const videoDir = getVideoDir();
139
- return Promise.resolve(videoDir);
140
- }
137
+ const videoDir = this.getBindings()?.downloadManager?.getVideoDir?.();
138
+ this.logEvent({ message: 'video dir set', videoDir });
139
+ return Promise.resolve(videoDir);
141
140
  }
142
141
  catch { }
143
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-services",
3
- "version": "1.7.46",
3
+ "version": "1.7.47",
4
4
  "peerDependencies": {
5
5
  "gd-eventlog": "^0.1.27"
6
6
  },