Skip to content

Commit b4a93b4

Browse files
committed
Fix up upgrade script errors
1 parent 7770289 commit b4a93b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DynamicLightRecorder/DynamicLightRecorder.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ var DynamicLightRecorder = DynamicLightRecorder || (function() {
100100
});
101101
case 0.6:
102102
myState.config.autoLink = true;
103+
myState.config.logLevel = 'INFO';
103104
logger.info('Upgrading existing tokens with transmogrifier-protection');
104105
_.each(myState.tileTemplates, function(template, key) {
105106
template.imgsrc = key;
106-
_.each(findObjs({type:'graphic', imgsrc:imgsrc}), function(graphic) {
107+
_.each(findObjs({type:'graphic', imgsrc:template.imgsrc}), function(graphic) {
107108
var gmn = graphic.get('gmnotes');
108109
if (gmn.indexOf('DynamicLightData:') === 0) {
109110
graphic.set('name', 'DynamicLightRecorder');
@@ -1530,7 +1531,6 @@ var DynamicLightRecorder = DynamicLightRecorder || (function() {
15301531
on('add:token', module.handleNewToken.bind(module));
15311532
on('destroy:token', module.handleDeleteToken.bind(module));
15321533
};
1533-
15341534
logger.wrapModule(module);
15351535
return {
15361536
RegisterEventHandlers: registerEventHandlers,

0 commit comments

Comments
 (0)