fix locale in now playing

This commit is contained in:
vapormusic 2022-02-10 22:16:15 +07:00
parent 58652594bc
commit bed6548fc1
7 changed files with 19 additions and 14 deletions

View file

@ -527,7 +527,7 @@ export class BrowserWindow {
ipcMain.on('play', (_event, type, id) => {
BrowserWindow.win.webContents.executeJavaScript(`
MusicKit.getInstance().setQueue({ ${type}: '${id}'}).then(function(queue) {
MusicKit.getInstance().setQueue({ ${type}: '${id}', parameters : {l : app.mklang}}).then(function(queue) {
MusicKit.getInstance().play();
});
`)