1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00
Jonas Jenwald 2022-08-24 16:46:26 +02:00
parent 14e8167df9
commit 723584dd4f
2 changed files with 2 additions and 3 deletions

View file

@ -1027,9 +1027,7 @@ function stopServer() {
}
function getSession(browser) {
return sessions.filter(function (session) {
return session.name === browser;
})[0];
return sessions.find(session => session.name === browser);
}
async function closeSession(browser) {