data/maglove/sdk.haml in maglove-0.6.6 vs data/maglove/sdk.haml in maglove-0.7.0

- old
+ new

@@ -13,14 +13,15 @@ div#__inspector:hover{opacity:1 !important;} div#__inspector a{color:#171717 !important;padding:0px 12px !important;border-left:1px solid #F5F5F5 !important;border-right:none !important;border-top:none !important;border-bottom:none !important;display:inline-block !important;float:left !important;} div#__inspector a:hover{color:#FFFFFF !important;background:#000000 !important;} div#__inspector a:first-child{border-left:none !important;} div#__bs_notify__{border-radius:0 !important;right:inherit !important;left:8px !important;height:32px !important;top:8px !important;line-height:32px !important;padding:0px 26px !important;color:#171717 !important;z-index:1000000 !important;background:#FFF !important;} - :javascript - window.ThemeApi.init({deviceId: 'AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE', appId: 'com.magloft.maglove', apiHost: 'www.magloft.com'}) if window.ThemeApi - %body = contents #__inspector - templates.each do |template| %a{href: "/#{template}"} = template + :javascript + if(window.ThemeApi) { + window.ThemeApi.init({deviceId: 'AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE', appId: 'com.magloft.maglove', apiHost: 'www.magloft.com'}); + }