DEV: whiteList is deprecated (#35)

DEV: whiteList is deprecated (#35)

diff --git a/assets/javascripts/discourse-markdown/discourse-graphviz.js.es6 b/assets/javascripts/discourse-markdown/discourse-graphviz.js.es6
index cbab544..d025268 100644
--- a/assets/javascripts/discourse-markdown/discourse-graphviz.js.es6
+++ b/assets/javascripts/discourse-markdown/discourse-graphviz.js.es6
@@ -3,7 +3,7 @@ export function setup(helper) {
     return;
   }
 
-  helper.whiteList([
+  helper.allowList([
     "div.graphviz",
     "div.graphviz.is-loading",
     "div.graphviz-svg",
diff --git a/plugin.rb b/plugin.rb
index a1a5dd2..1371133 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -19,12 +19,7 @@ after_initialize do
   end
 
   def allowed_svg_xpath
-    # TODO Drop after Discourse 2.6.0 release
-    if UploadCreator.const_defined?("WHITELISTED_SVG_ELEMENTS")
-      @@allowed_svg_xpath ||= "//*[#{UploadCreator::WHITELISTED_SVG_ELEMENTS.map { |e| "name()!='#{e}'" }.join(" and ") }]"
-    else
-      @@allowed_svg_xpath ||= "//*[#{UploadCreator::ALLOWED_SVG_ELEMENTS.map { |e| "name()!='#{e}'" }.join(" and ") }]"
-    end
+    @@allowed_svg_xpath ||= "//*[#{UploadCreator::ALLOWED_SVG_ELEMENTS.map { |e| "name()!='#{e}'" }.join(" and ") }]"
   end
 
   DiscourseEvent.on(:before_post_process_cooked) do |doc, post|

GitHub sha: 9b65dcc6f8f55e75eb43c48f843b140a865be36b

This commit appears in #35 which was approved by davidtaylorhq. It was merged by jjaffeux.