Skip to content

Commit

Permalink
fixes #101.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed Sep 30, 2023
1 parent 28e496a commit 7b38250
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/policies/chromium/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ func Parse(policiesJson string) (*types.BrowserPolicyContent, error) {
policies.Extensions = []types.BrowserPolicyExtension{}
for _, val := range extensions.([]interface{}) {
s := strings.Split(val.(string), ";")
url := ""
if len(s) > 1 {
url = s[1]
}
policies.Extensions = append(
policies.Extensions,
types.BrowserPolicyExtension{
ID: s[0],
URL: s[1],
URL: url,
},
)
}
Expand Down

0 comments on commit 7b38250

Please sign in to comment.