mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 11:50:07 +00:00
fixed bug in normalizePath(..) when dealing with UN*X/OSX root paths...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
778d2f1dc6
commit
34d9ab4ba2
@ -615,6 +615,11 @@ function normalizePath(url, base, mode, do_unescape){
|
||||
if(/^[A-Z]:\//.test(url)){
|
||||
url = 'file:///' + url
|
||||
}
|
||||
// UN*X/OSX path...
|
||||
if(url[0] == '/'){
|
||||
// XXX test exactly how many slashes to we need, two or three?
|
||||
url = 'file://' + url
|
||||
}
|
||||
|
||||
// we got absolute path...
|
||||
if(/^(file|http|https):\/\/.*$/.test(url)){
|
||||
|
||||
@ -66,7 +66,7 @@ var KEYBOARD_CONFIG = {
|
||||
// NOTE: these are for systems where F** keys are not available
|
||||
// or do other stuff...
|
||||
R: {
|
||||
'ctrl': doc('Reload viewer',
|
||||
'ctrl+alt': doc('Reload viewer',
|
||||
function(){
|
||||
reloadViewer()
|
||||
return false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user