mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
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
|
// A localStorage-like object which should be accessible from the
|
||||||
// background page or auxiliary pages.
|
// background page or auxiliary pages.
|
||||||
// This storage is optional, but it is nice to have, for a more polished user
|
// This storage is optional, but it is nice to have, for a more polished user
|
||||||
|
Loading…
Reference in New Issue
Block a user