summaryrefslogtreecommitdiff
path: root/plugins/share/share_prefs.js
blob: 79ca37284f805543b37864718b096df7572e641b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function clearArticleAccessKeys() {
	if (confirm(__("This will invalidate all previously shared article URLs. Continue?"))) {
		notify_progress("Clearing URLs...");

		const query = { op: "pluginhandler", plugin: "share", method: "clearArticleKeys" };

		xhrPost("backend.php", query, () => {
			notify_info("Shared URLs cleared.");
		});
	}

	return false;
}