Commit 940f6676 authored by Ahoy's avatar Ahoy

Trim object

parent 4038520c
Pipeline #11555816 passed with stages
in 50 seconds
......@@ -203,7 +203,7 @@
Параметр <span class="attr-name">data-button</span>
</span>
<br>
<span class="attr-name">data-button=&quot;</span><span class="attr-value">moonwalk: Плеер, hdgo: Онлайн</span><span class="attr-name">&quot;</span>
<span class="attr-name">data-button=&quot;</span><span class="attr-value">moonwalk: Плеер онлайн, hdgo: Запас. плеер</span><span class="attr-name">&quot;</span>
<span class="comment"> - названия кнопок</span>
</div>
<div class="code">
......
......@@ -40,7 +40,7 @@ function yo() {
options.button.split(',').forEach(function (button) {
var btn = button.split(':');
if (btn.length === 2 && btn[0] && btn[1]) {
btns[btn[0].toLowerCase()] = btn[1].trim();
btns[btn[0].trim().toLowerCase()] = btn[1].trim();
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment