diff --git a/pace.js b/pace.js index 0831a47..28810f2 100644 --- a/pace.js +++ b/pace.js @@ -273,7 +273,7 @@ } this.el = document.createElement('div'); this.el.className = "pace pace-active"; - document.body.className = document.body.className.replace(/(pace-done )|/, 'pace-running '); + document.body.className = document.body.className.replace(/(pace-done )/, 'pace-running '); var _custom_class_name = (options.className !== '') ? ' '+options.className : ''; this.el.innerHTML = '
\n
\n
\n
'; if (targetElement.firstChild != null) { @@ -983,4 +983,4 @@ } } -}).call(this); \ No newline at end of file +}).call(this);