mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
now paths should work without issues on both U*NX systems and Windows...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5390001e5c
commit
8c62d1d222
@ -35,7 +35,10 @@ var setup = function(require, root){
|
||||
(require.main ?
|
||||
require.main.filename.split(/[\\\/]/g).slice(0, -1).join('/')
|
||||
: document.baseURI
|
||||
.replace(/^[a-zA-Z]+:\/\/\/?/, '')
|
||||
// remove URL protocol...
|
||||
.replace(/^[a-zA-Z]+:\/\/\/?/, '/')
|
||||
// remove leading '/' on windows drives...
|
||||
.replace(/^\/[a-zA-Z]:/, '')
|
||||
.split(/[#&]/)[0].split(/[\\\/]/g).slice(0, -1).join('/'))
|
||||
: '.',
|
||||
|
||||
|
||||
@ -11,6 +11,8 @@ Hacks and fixes
|
||||
- cfg/requirejs.js:
|
||||
.baseUrl calculation under U*IX systems needs a '/' prefixed...
|
||||
|
||||
Both issues are currently tweaked manually...
|
||||
|
||||
|
||||
|
||||
20210122:
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
// > node version.js
|
||||
// - browser + requirejs + file://
|
||||
// - browser + requirejs + http*
|
||||
var VERSION = '4.0.0a'
|
||||
var VERSION = '4.0.1a'
|
||||
|
||||
//console.log(VERSION)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user