Mercurial > hg > isophonics-drupal-site
comparison core/modules/history/js/mark-as-read.js @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 /** | |
2 * DO NOT EDIT THIS FILE. | |
3 * See the following change record for more information, | |
4 * https://www.drupal.org/node/2815083 | |
5 * @preserve | |
6 **/ | |
7 | |
8 (function (window, Drupal, drupalSettings) { | |
9 window.addEventListener('load', function () { | |
10 if (drupalSettings.history && drupalSettings.history.nodesToMarkAsRead) { | |
11 Object.keys(drupalSettings.history.nodesToMarkAsRead).forEach(Drupal.history.markAsRead); | |
12 } | |
13 }); | |
14 })(window, Drupal, drupalSettings); |