
<script>

	PLUGIN(function(exports) {

		var prev = user.unread;

		exports.reload = function(com) {
			exports.refresh();
		};

		exports.click = function(el) {
			var model = exports.model;
			var id = ATTRD(el);
			var item = model.items.findItem('id', id);
			EXEC('common/open', item.appid, item.path);
		};

		exports.clear = function() {
			exports.tapi('notifications_clear ERROR', () => exports.set('items', EMPTYARRAY));
		};

		exports.refresh = function() {
			exports.tapi('notifications ERROR', fu