Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggest to change json file check in ccs._load function #3231

Open
jaunusa opened this issue Jan 11, 2016 · 0 comments
Open

suggest to change json file check in ccs._load function #3231

jaunusa opened this issue Jan 11, 2016 · 0 comments

Comments

@jaunusa
Copy link

jaunusa commented Jan 11, 2016

Hi

For my web export I modify the paths to achieve versioning for loaded resources:

"res/MyNode.json" to "res/MyNode.json?v=1.5.2"

But the check for json files fails because the ending is "json?v=1.5.2". I suggest to change the extension check (line 41) from:

if(ext !== "json" && ext !== "exportjson")

to:

if(ext.substr(0, 4) !== "json" && ext.substr(0, 10) !== "exportjson")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant