Skip to content

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

fixing autoplay issue with electron

Ilian Sapundshievbd65752e5ee7
diff --git a/app/main.dev.js b/app/main.dev.js
index ffc3d97d1..73f4d497b 100644
--- a/app/main.dev.js
+++ b/app/main.dev.js
@@ -76,6 +76,8 @@ const installExtensions = async () => {
.catch(console.log);
};
+app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required');
+
app.on('window-all-closed', () => {
// Respect the OSX convention of having the application in memory even
// after all windows have been closed