UNPKG

@proca/widget

Version:

Proca is an open-source campaign toolkit designed to empower activists and organisations in their digital advocacy efforts. It provides a flexible and customisable platform for creating and managing online petitions, email campaigns, and other forms of di

8 lines (7 loc) 293 B
if (!String.prototype.replaceAll) { //to disable String prototype is read only, properties should not be added no-extend-native String.prototype.replaceAll = function (target, payload) { const regex = new RegExp(target, "g"); return this.valueOf().replace(regex, payload); }; }