Check if OCA.Files.App is available before callingtags/v16.0.0RC1
@@ -671,7 +671,7 @@ | |||
icon: '', | |||
actionHandler: function (filename, context) { | |||
var dir = context.$file.attr('data-path') || context.fileList.getCurrentDirectory(); | |||
if (OCA.Files.App.getActiveView() !== 'files') { | |||
if (OCA.Files.App && OCA.Files.App.getActiveView() !== 'files') { | |||
OCA.Files.App.setActiveView('files'); | |||
OCA.Files.App.fileList.changeDirectory(OC.joinPaths(dir, filename), true, true); | |||
} else { |