Skip to content
Snippets Groups Projects
Commit dfc6fd85 authored by didierfred's avatar didierfred
Browse files

correct bug in import function

parent 071d9c87
No related branches found
No related tags found
No related merge requests found
......@@ -200,8 +200,9 @@ function readSingleFile(e)
try
{
config = JSON.parse(contents);
// check file format
if (config.format_version && config.target_page)
if (config.format_version)
{
// if url pattern invalid , set to ""
if (!isTargetValid(config.target_page)) config.target_page="";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment