main: cache remote-saving regexp
This commit is contained in:
parent
28ed28ab2d
commit
4fcf539a68
2 changed files with 2 additions and 2 deletions
|
|
@ -116,7 +116,7 @@ module.exports = {
|
|||
|
||||
sessionSetPath: function(data, clientId) {
|
||||
|
||||
if (settings.read('remoteSaving') && !RegExp(settings.read('remoteSaving')).test(ipc.clients[clientId].address)) {
|
||||
if (settings.read('remoteSaving') && settings.read('remoteSaving').test(ipc.clients[clientId].address)) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue