Skip to content

Commit ce305e5

Browse files
committed
fix url issue after applying asset() function, add editor not found issue
1 parent 681b1ca commit ce305e5

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/controllers/LfmController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function getUrl($type = null)
142142

143143
$url = str_replace('\\','/',$url);
144144

145-
return $url . '/';
145+
return $url;
146146
}
147147

148148

src/views/script.blade.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,6 @@ function getFileUrl(file) {
347347
item_url = file_url;
348348
@endif
349349
350-
if (path.indexOf(ds) === 0) {
351-
path = path.substring(1);
352-
}
353-
354350
if (path != ds) {
355351
item_url = item_url + path + ds;
356352
}
@@ -383,7 +379,7 @@ function getFileUrl(file) {
383379
window.close();
384380
}
385381
} else {
386-
alert('Fail to get image/file url, please contact developers.');
382+
alert('Editor not found, cannot apply image.');
387383
}
388384
}
389385
//end useFile

0 commit comments

Comments
 (0)