mirror of https://github.com/gorhill/uBlock.git
Safari: enable storage-used number formatting consistent with other browsers
This commit is contained in:
parent
cf3816b494
commit
339ffe9698
|
@ -130,6 +130,14 @@ vAPI.closePopup = function() {
|
|||
|
||||
/******************************************************************************/
|
||||
|
||||
Number.prototype._toLocaleString = Number.prototype.toLocaleString;
|
||||
Number.prototype.toLocaleString = function() {
|
||||
// some parts expect comma-formatting; Safari doesn't do it automatically
|
||||
return this._toLocaleString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
// A localStorage-like object which should be accessible from the
|
||||
// background page or auxiliary pages.
|
||||
// This storage is optional, but it is nice to have, for a more polished user
|
||||
|
|
Loading…
Reference in New Issue