Answer the question
In order to leave comments, you need to log in
How to fix new Notification encoding issue?
We have code:
var text = 'Оповещаю Вас о важнейшем событии'
notify = function( text ) {
if ( requestNotificationPermissions() ) {
var n = new Notification(
'Оповещение!',
{ icon: 'images/image.png', body: text });
setTimeout( n.close.bind(n), 5000 );
}
},
Answer the question
In order to leave comments, you need to log in
The notification was called in the background.js script, and it was included in background.html. So in the .html file it was necessary to register
<head>
<meta charset="utf-8">
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question