session foldername
This commit is contained in:
1 parent
266d5ca7c4
commit
df61289965
1 file changed
+13
-1
+13
-1
@@ -113,7 +113,19 @@ function newFileCloud () {
|
||||
}
|
||||
|
||||
if (pSession !== undefined) {
|
||||
filePath = filePath.replace('@Session', pSession.id)
|
||||
let code
|
||||
let sessionFolderName = pSession.id
|
||||
if (pSession.code !== undefined) {
|
||||
try {
|
||||
code = JSON.parse(pSession.code)
|
||||
if (code.folderName !== undefined) {
|
||||
sessionFolderName = code.folderName
|
||||
}
|
||||
} catch (err) {
|
||||
sessionFolderName = pSession.id
|
||||
}
|
||||
}
|
||||
filePath = filePath.replace('@Session', sessionFolderName)
|
||||
}
|
||||
|
||||
if (pExchange !== undefined) {
|
||||
|
||||
Reference in new issue
Block a user