Browse Source

merge AriaNg commit (https://github.com/mayswind/AriaNg/commit/844d237594f48e49e71e61abe708754ee9a6381f)

MaysWind 3 years ago
parent
commit
ffcf94e9d2
1 changed files with 6 additions and 2 deletions
  1. 6 2
      app/scripts/services/ariaNgNotificationService.js

+ 6 - 2
app/scripts/services/ariaNgNotificationService.js

@@ -110,12 +110,16 @@
                 });
             },
             notifyViaBrowser: function (title, content, options) {
+                if (!options) {
+                    options = {};
+                }
+
                 if (title) {
-                    title = ariaNgLocalizationService.getLocalizedText(title);
+                    title = ariaNgLocalizationService.getLocalizedText(title, options.titleParams);
                 }
 
                 if (content) {
-                    content = ariaNgLocalizationService.getLocalizedText(content);
+                    content = ariaNgLocalizationService.getLocalizedText(content, options.contentParams);
                 }
 
                 return notifyViaBrowser(title, content, options);