summaryrefslogtreecommitdiff
path: root/plugins/share/share_prefs.js
blob: e2151065fc9ac6c798c83c779cceabb183a9200b (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;
	}
};