goblin-desktop 4.0.23 → 4.0.25
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/package.json
CHANGED
|
@@ -23,7 +23,7 @@ Goblin.registerQuest(goblinName, 'create', function* (
|
|
|
23
23
|
session,
|
|
24
24
|
configuration,
|
|
25
25
|
routes,
|
|
26
|
-
mainGoblin
|
|
26
|
+
mainGoblin // FIXME: replace mainGoblin by mainGoblinModule
|
|
27
27
|
) {
|
|
28
28
|
if (clientSessionId) {
|
|
29
29
|
quest.goblin.setX('clientSessionId', clientSessionId);
|
|
@@ -55,7 +55,7 @@ Goblin.registerQuest(goblinName, 'create', function* (
|
|
|
55
55
|
const mainConfig = require('xcraft-core-etc')().load(
|
|
56
56
|
`goblin-${mainGoblin}`
|
|
57
57
|
);
|
|
58
|
-
useNabu = mainConfig
|
|
58
|
+
useNabu = mainConfig?.profile?.useNabu === true;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
// CREATE NABU TOOLBAR IF NEEDED
|
|
@@ -682,7 +682,7 @@ Goblin.registerQuest(goblinName, 'download-file', function (
|
|
|
682
682
|
const stream = fs.createReadStream;
|
|
683
683
|
const routingKey = require('xcraft-core-host').getRoutingKey();
|
|
684
684
|
if (fs.existsSync(filePath)) {
|
|
685
|
-
const getFileFilter = require('xcraft-core-utils/lib/files.js');
|
|
685
|
+
const {getFileFilter} = require('xcraft-core-utils/lib/files.js');
|
|
686
686
|
let file = stream(filePath);
|
|
687
687
|
quest.evt(
|
|
688
688
|
`<${clientSessionId}-${clientWindowId}-download-file-requested>`,
|