Skip to content

Commit

Permalink
feat: 远程片段支持读取原始内容
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Oct 8, 2019
1 parent 209f0f4 commit a1f9e0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import {
ArtifactConfig,
CommandConfig,
NodeNameFilterType,
PossibleNodeConfigType, ProviderConfig,
PossibleNodeConfigType,
ProviderConfig,
RemoteSnippet,
SimpleNodeConfig,
} from './types';
Expand Down
1 change: 1 addition & 0 deletions lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,7 @@ export const loadRemoteSnippetList = (remoteSnippetList: ReadonlyArray<RemoteSni
main: (rule: string) => addProxyToSurgeRuleSet(res, rule),
name: item.name,
url: item.url,
text: res, // 原始内容
}));
}));
};
Expand Down

0 comments on commit a1f9e0f

Please sign in to comment.