mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 08:20:11 +00:00
fix: exclude theme.json from interrogation
This commit is contained in:
parent
157a2a6145
commit
54d056c4b7
3
dist/core/fresh-theme.js
vendored
3
dist/core/fresh-theme.js
vendored
@ -142,6 +142,9 @@ Definition of the FRESHTheme class.
|
|||||||
_loadOne = function(absPath, formatsHash, tplFolder) {
|
_loadOne = function(absPath, formatsHash, tplFolder) {
|
||||||
var absPathSafe, act, defFormats, idx, isPrimary, obj, outFmt, pathInfo, portion, ref, ref1, reg, res;
|
var absPathSafe, act, defFormats, idx, isPrimary, obj, outFmt, pathInfo, portion, ref, ref1, reg, res;
|
||||||
pathInfo = parsePath(absPath);
|
pathInfo = parsePath(absPath);
|
||||||
|
if (pathInfo.basename.toLowerCase() === 'theme.json') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
absPathSafe = absPath.trim().toLowerCase();
|
absPathSafe = absPath.trim().toLowerCase();
|
||||||
outFmt = '';
|
outFmt = '';
|
||||||
act = 'copy';
|
act = 'copy';
|
||||||
|
@ -129,6 +129,8 @@ _load = (formatsHash) ->
|
|||||||
_loadOne = ( absPath, formatsHash, tplFolder ) ->
|
_loadOne = ( absPath, formatsHash, tplFolder ) ->
|
||||||
|
|
||||||
pathInfo = parsePath absPath
|
pathInfo = parsePath absPath
|
||||||
|
return if pathInfo.basename.toLowerCase() == 'theme.json'
|
||||||
|
|
||||||
absPathSafe = absPath.trim().toLowerCase()
|
absPathSafe = absPath.trim().toLowerCase()
|
||||||
outFmt = ''
|
outFmt = ''
|
||||||
act = 'copy'
|
act = 'copy'
|
||||||
|
Loading…
Reference in New Issue
Block a user