mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-12 13:58:28 -04:00
Add console logging for File Handling API
Former-commit-id: e73fced0861daff4e28f16d94bbe65eacb5a08b2 [formerly 72ca61d88ae07d3023341df114c7d068eaa3a05f] [formerly 6cc94017e083111f1b78766e6147edcd278747cb] [formerly e96c17b1a44c39f80e3158a77d15d93636513559 [formerly 1a6c0febdb5b21ea6e65bc9fffd0f95d6008631c [formerly dad547d218b25cf19ea662c8c234cf9ab4708631]]] Former-commit-id: 8c94bb86eda7f8f431a88b792a4df896c122f56f [formerly e8401622ec62eea97b495bb54f8d3f33c0d206f6 [formerly 0ed4dff94b20eae258de06e39b943a433adc63f0]] Former-commit-id: 515f52215919a142c10963020fea0c55f58dc6e7 [formerly 99d2598e08a07431da2d6328a0b446feb11f7d24] Former-commit-id: 5f7b7cc37fdbd653f4d21dc5ccfa0962c5cfd59c
This commit is contained in:
parent
57d9f32da2
commit
b09012f9c8
@ -2178,12 +2178,15 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett
|
||||
}
|
||||
|
||||
if ('launchQueue' in window) {
|
||||
console.debug('File Handling API is available');
|
||||
launchQueue.setConsumer(function (launchParams) {
|
||||
// Nothing to do when the queue is empty.
|
||||
if (!launchParams.files.length) {
|
||||
console.debug('Launch Queue is empty');
|
||||
return;
|
||||
}
|
||||
// User launched app by double-clicking on file
|
||||
console.debug('Processing NativeFileHandle for ' + launchParams);
|
||||
processNativeFileHandle(launchParams.files[0]);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user