Skip to content

TagSpaces is an offline, open source, document manager with tagging support

update

kristiyandda0f95a49b613
diff --git a/data/js/ext.api.js b/data/js/ext.api.js
index 65d936ff2..d57e2cbee 100644
--- a/data/js/ext.api.js
+++ b/data/js/ext.api.js
@@ -10,11 +10,10 @@ define(function(require, exports, module) {
var command = data.command;
switch (command) {
- case "endedVideo":
+ case "playingVideo":
if(data){
- console.log(data);
- openVideoFileFormat(data);
- } else {console.log('err')}
+ openNextFile(data);
+ }
break;
case "openLinkExternally":
if (data.link) {
@@ -30,8 +29,7 @@ define(function(require, exports, module) {
}
}
- function openVideoFileFormat(filePath) {
-
+ function openNextFile(filePath) {
if(TSCORE.selectedFiles[0]) {
TSCORE.FileOpener.getNextFile(filePath);
}