JS Error by ID “discard_content”
-
Ver. 4.1.9
there is no “if else” for “discard_content”
Therefore i have a script error in wordpress admin page. It disturb my custom scripts.
Please fix it please as soon as possible with this code.
if(document.getElementById(‘discard_content’)){ document.getElementById(‘discard_content’).classList.remove(‘discard_button_outside_settings’) document.getElementById(‘discard_content’).classList.add(‘discard_button’)
} else {
}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘JS Error by ID “discard_content”’ is closed to new replies.