Closed dudeonthehorse closed 7 years ago
@dudeonthehorse thanks, it makes sense, I'm going to update this ASAP.
Thanks, @drugoi for the PR #3 that provides this functionality. Now we can use one of these data-utm attributes for preventing URL change: nope, false and ignore. Updated version is already published to npm.
Все здорово, спасибо за пакет. Забираю к себе в Kilogram.
Но в строчке
if ($(links[i]).attr('data-utm') === 'nope')
я бы использовал значениеfalse
илиignore
– так намного семантичнее. Предлагаю добавить оба варианта с сохранением обратной совместимости.