diff --git a/client/js/client.js b/client/js/client.js index 9e2bafb..e192cab 100644 --- a/client/js/client.js +++ b/client/js/client.js @@ -916,7 +916,7 @@ let Notification = Backbone.View.extend({ }, show: function(){ let $alert = this.$el.find(".alert"); - $alert.slideDown(600).delay(2000).queue(this.hide.bind(this)); + $alert.slideDown(600).delay(Config.Gwent.notification_duration).queue(this.hide.bind(this)); }, hide: function(){ diff --git a/public/Config.js b/public/Config.js index f849143..4811e41 100644 --- a/public/Config.js +++ b/public/Config.js @@ -7,6 +7,10 @@ Config.Server = { secure: false } +Config.Gwent = { + notification_duration: 4000 +} + Config.Site = { base: "/gwent-online/site/public" } \ No newline at end of file