adds moment-timezone.js to the list of vendorable libs

This commit is contained in:
Joffrey JAFFEUX 2018-05-01 16:00:05 +02:00 committed by GitHub
parent 691174fa8f
commit 1eee517ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -186,7 +186,8 @@ class DiscoursePluginRegistry
end
VENDORED_CORE_PRETTY_TEXT_MAP = {
"moment.js" => "lib/javascripts/moment.js"
"moment.js" => "lib/javascripts/moment.js",
"moment-timezone.js" => "lib/javascripts/moment-timezone-with-data.js"
}
def self.core_asset_for_name(name)
asset = VENDORED_CORE_PRETTY_TEXT_MAP[name]