Skip to content

Commit 23663c6

Browse files
Merge branch 'develop' into topic/EM-1322-Subscription-FAQ
2 parents d55e3bf + 5e41518 commit 23663c6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

lib/cortex/snippets/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Cortex
22
module Snippets
3-
VERSION = '1.1.1'
3+
VERSION = '1.1.2'
44
end
55
end

lib/cortex/snippets/webpage.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ def accordion_group_widget_data
7474
def accordion_group_widget_data_for(section_name)
7575
accordion_group_widget_data&.[](section_name) || []
7676
end
77+
78+
def charts_widget_data
79+
JSON.parse(@webpage[:charts_widget_json] || 'null', quirks_mode: true)
80+
end
81+
82+
def charts_widget_data_for(section_name)
83+
charts_widget_data&.[](section_name) || {}
84+
end
7785

7886
def snippets
7987
@webpage[:snippets]

0 commit comments

Comments
 (0)