summaryrefslogtreecommitdiff
path: root/plugins/share/share_prefs.js
blob: d974af61837ed1638f749be7bf4d147b47fcffd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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;
	}
};