Uncaught SyntaxError: Unexpected token ‘}’ on Login Page
-
There is a stray curly bracket in the Loginpress Javascript code on the login page. It’s throwing a JS syntax error in the console.
Uncaught SyntaxError: Unexpected token ‘}’ On line 752
Code:
image.setAttribute( "style", "display: block;margin: 0 auto;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);" ); subButton[0].appendChild(image); } }; </script>
There is also left-over commented out code in that same code block a few lines above. That’s generally bad practice and should probably be removed to avoid confusion with the }’s or breakage with minification
The page I need help with: [log in to see the link]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Uncaught SyntaxError: Unexpected token ‘}’ on Login Page’ is closed to new replies.