mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-14 12:31:00 +02:00
* https://eslint.org/docs/latest/rules/no-undef * https://eslint.org/docs/latest/rules/no-unused-vars
16 lines
361 B
JavaScript
16 lines
361 B
JavaScript
/* global __, Plugins, Notify, xhr, App */
|
|
|
|
Plugins.Share = {
|
|
clearKeys: function() {
|
|
if (confirm(__("This will invalidate all previously shared article URLs. Continue?"))) {
|
|
Notify.progress("Clearing URLs...");
|
|
|
|
xhr.post("backend.php", App.getPhArgs("share", "clearArticleKeys"), (reply) => {
|
|
Notify.info(reply);
|
|
});
|
|
}
|
|
|
|
return false;
|
|
}
|
|
};
|