mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
fix(listeners) onPathElementClick: empty space (#171)
This commit is contained in:
parent
20afb1c1c9
commit
753db12b2d
1 changed files with 5 additions and 0 deletions
|
|
@ -16,6 +16,9 @@ const {
|
|||
apiURL
|
||||
} = require('../../common/cloudfunc');
|
||||
|
||||
const NBSP_REG = RegExp(String.fromCharCode(160), 'g');
|
||||
const SPACE = ' ';
|
||||
|
||||
module.exports.init = () => {
|
||||
contextMenu();
|
||||
dragndrop();
|
||||
|
|
@ -208,7 +211,9 @@ function onPathElementClick(panel, event) {
|
|||
*/
|
||||
link = link.replace('%%', '%25%');
|
||||
link = decodeURI(link);
|
||||
|
||||
link = link.replace(RegExp('^' + prefix + FS), '') || '/';
|
||||
link = link.replace(NBSP_REG, SPACE);
|
||||
|
||||
noCurrent = isNoCurrent(panel);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue