bugfix relative path + build
This commit is contained in:
parent
9ef32ac2a3
commit
f9af5029e3
7 changed files with 2246 additions and 10 deletions
4
dist/xrfragment.aframe.all.js
vendored
4
dist/xrfragment.aframe.all.js
vendored
|
|
@ -972,8 +972,8 @@ xrf.navigator.to = (url,flags,loader,data) => {
|
|||
loader = loader || new Loader().setPath( dir )
|
||||
}
|
||||
|
||||
// force relative path
|
||||
if( dir ) dir = dir[0] == '.' ? dir : `.${dir}`
|
||||
// force relative path for files which dont include protocol or relative path
|
||||
if( dir ) dir = dir[0] == '.' || dir.match("://") ? dir : `.${dir}`
|
||||
url = url.replace(dir,"")
|
||||
loader = loader || new Loader().setPath( dir )
|
||||
const onLoad = (model) => {
|
||||
|
|
|
|||
4
dist/xrfragment.aframe.js
vendored
4
dist/xrfragment.aframe.js
vendored
|
|
@ -971,8 +971,8 @@ xrf.navigator.to = (url,flags,loader,data) => {
|
|||
loader = loader || new Loader().setPath( dir )
|
||||
}
|
||||
|
||||
// force relative path
|
||||
if( dir ) dir = dir[0] == '.' ? dir : `.${dir}`
|
||||
// force relative path for files which dont include protocol or relative path
|
||||
if( dir ) dir = dir[0] == '.' || dir.match("://") ? dir : `.${dir}`
|
||||
url = url.replace(dir,"")
|
||||
loader = loader || new Loader().setPath( dir )
|
||||
const onLoad = (model) => {
|
||||
|
|
|
|||
20
dist/xrfragment.all.js
vendored
20
dist/xrfragment.all.js
vendored
|
|
@ -83,3 +83,23 @@
|
|||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*/
|
||||
/*
|
||||
* generated at $(date)
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*/
|
||||
/*
|
||||
* generated at $(date)
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*/
|
||||
/*
|
||||
* generated at $(date)
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*/
|
||||
/*
|
||||
* generated at $(date)
|
||||
* https://xrfragment.org
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*/
|
||||
|
|
|
|||
2216
dist/xrfragment.module.js
vendored
2216
dist/xrfragment.module.js
vendored
File diff suppressed because it is too large
Load diff
4
dist/xrfragment.three.js
vendored
4
dist/xrfragment.three.js
vendored
|
|
@ -971,8 +971,8 @@ xrf.navigator.to = (url,flags,loader,data) => {
|
|||
loader = loader || new Loader().setPath( dir )
|
||||
}
|
||||
|
||||
// force relative path
|
||||
if( dir ) dir = dir[0] == '.' ? dir : `.${dir}`
|
||||
// force relative path for files which dont include protocol or relative path
|
||||
if( dir ) dir = dir[0] == '.' || dir.match("://") ? dir : `.${dir}`
|
||||
url = url.replace(dir,"")
|
||||
loader = loader || new Loader().setPath( dir )
|
||||
const onLoad = (model) => {
|
||||
|
|
|
|||
4
dist/xrfragment.three.module.js
vendored
4
dist/xrfragment.three.module.js
vendored
|
|
@ -971,8 +971,8 @@ xrf.navigator.to = (url,flags,loader,data) => {
|
|||
loader = loader || new Loader().setPath( dir )
|
||||
}
|
||||
|
||||
// force relative path
|
||||
if( dir ) dir = dir[0] == '.' ? dir : `.${dir}`
|
||||
// force relative path for files which dont include protocol or relative path
|
||||
if( dir ) dir = dir[0] == '.' || dir.match("://") ? dir : `.${dir}`
|
||||
url = url.replace(dir,"")
|
||||
loader = loader || new Loader().setPath( dir )
|
||||
const onLoad = (model) => {
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ xrf.navigator.to = (url,flags,loader,data) => {
|
|||
loader = loader || new Loader().setPath( dir )
|
||||
}
|
||||
|
||||
// force relative path
|
||||
if( dir ) dir = dir[0] == '.' ? dir : `.${dir}`
|
||||
// force relative path for files which dont include protocol or relative path
|
||||
if( dir ) dir = dir[0] == '.' || dir.match("://") ? dir : `.${dir}`
|
||||
url = url.replace(dir,"")
|
||||
loader = loader || new Loader().setPath( dir )
|
||||
const onLoad = (model) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue