You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2020/07/02 15:50:59 UTC

[cordova-plugin-dialogs] branch master updated: fix: remove deprecated platform snippet (#142)

This is an automated email from the ASF dual-hosted git repository.

timbru31 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-dialogs.git


The following commit(s) were added to refs/heads/master by this push:
     new 784d65f  fix: remove deprecated platform snippet (#142)
784d65f is described below

commit 784d65fb29dc67b7cee71f2ad69fd8ff65d98329
Author: Tim Brust <gi...@timbrust.de>
AuthorDate: Thu Jul 2 15:50:52 2020 +0000

    fix: remove deprecated platform snippet (#142)
---
 www/notification.js | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/www/notification.js b/www/notification.js
index 7ae7e31..1de7b52 100644
--- a/www/notification.js
+++ b/www/notification.js
@@ -114,16 +114,7 @@ function convertButtonLabels (buttonLabels) {
     // Some platforms take an array of button label names.
     // Other platforms take a comma separated list.
     // For compatibility, we convert to the desired type based on the platform.
-    if (
-        platform.id === 'amazon-fireos' ||
-        platform.id === 'android' ||
-        platform.id === 'ios' ||
-        platform.id === 'windowsphone' ||
-        platform.id === 'firefoxos' ||
-        platform.id === 'ubuntu' ||
-        platform.id === 'windows8' ||
-        platform.id === 'windows'
-    ) {
+    if (platform.id === 'android' || platform.id === 'ios' || platform.id === 'windows') {
         if (typeof buttonLabels === 'string') {
             buttonLabels = buttonLabels.split(','); // not crazy about changing the var type here
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org