Skip to content

Commit 30b5f28

Browse files
committed
Sync model include and model namespace back from storage.
1 parent 1587945 commit 30b5f28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/chrome/assets/js/popup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,13 @@ $(document).ready(function() {
136136

137137
chrome.storage.local.set(storage, function() {
138138
var target = storage.targets[storage.target];
139+
overrides.model.include = target.config.model.include;
140+
overrides.model.namespace = target.config.model.namespace;
139141
var input = $.extend({}, target.config, overrides);
140142

141143
processActivePage(input).always(function(context) {
142144
ga('send', 'event', 'active.page', 'process', context.url);
145+
143146
var generated = (Handlebars.compile(target.template))(context);
144147
var fileName = context.model.name + '.' + storage.target;
145148

0 commit comments

Comments
 (0)