mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-02 02:58:13 -05:00
Initialize revision of the rulelist profile on upgrade.
This commit is contained in:
parent
ab36b6eba6
commit
6918abb5b2
@ -150,6 +150,7 @@ module.exports = (oldOptions, i18n) ->
|
|||||||
nameMap[defaultRule.profileId] || 'direct'
|
nameMap[defaultRule.profileId] || 'direct'
|
||||||
if not config.ruleListEnabled
|
if not config.ruleListEnabled
|
||||||
auto.defaultProfileName = rulelist.defaultProfileName
|
auto.defaultProfileName = rulelist.defaultProfileName
|
||||||
|
OmegaPac.Profiles.updateRevision(rulelist)
|
||||||
|
|
||||||
rules = try JSON.parse(oldOptions['rules'])
|
rules = try JSON.parse(oldOptions['rules'])
|
||||||
if rules
|
if rules
|
||||||
|
Loading…
Reference in New Issue
Block a user