| Index: Source/modules/notifications/Notification.cpp
|
| diff --git a/Source/modules/notifications/Notification.cpp b/Source/modules/notifications/Notification.cpp
|
| index 227238ee3de57445545df040d126cc92a36323a5..a2d4c6f7bf8680f4ce306d15415779559fd813ef 100644
|
| --- a/Source/modules/notifications/Notification.cpp
|
| +++ b/Source/modules/notifications/Notification.cpp
|
| @@ -96,7 +96,10 @@ Notification* Notification::create(ExecutionContext* context, const String& titl
|
|
|
| notification->setBody(options.body());
|
| notification->setTag(options.tag());
|
| - notification->setLang(options.lang());
|
| +
|
| + if (Platform::current()->isValidLocaleSyntax(options.lang()))
|
| + notification->setLang(options.lang());
|
| +
|
| notification->setDir(options.dir());
|
| notification->setVibrate(NavigatorVibration::sanitizeVibrationPattern(options.vibrate()));
|
| notification->setSilent(options.silent());
|
|
|