You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Answers v11, cannot run ANSWERS.init successfully after getting an error from any previous ANSWERS.init. Specifically the error when the given container class does not exist.
Steps to recreate:
Open a page without a div element with class ".test"
Load Answers Script: In Dev Tools Console
(function(document, tag) {
var scriptTag = document.createElement(tag), // create a script tag
firstScriptTag = document.getElementsByTagName(tag)[0]; // find the first script tag in the document
scriptTag.src = 'https://assets.sitescdn.net/answers/v0.11.1/answers.js'; // set the source of the script to your script
firstScriptTag.parentNode.insertBefore(scriptTag, firstScriptTag); // append the script to the DOM
}(document, 'script'));
Try ANSWERS.init on any element that exists and it will not throw an error or populate the container
4.5. Inserting the missing element also does not work
@creotutar sorries i might just not understand this -- when you're setting up the Answers experience, you're calling the Answers init multiple time on the same page? "cannot run ANSWERS.init successfully after getting from any previous ANSWERS.init"
On Answers v11, cannot run
ANSWERS.init
successfully after getting an error from any previous ANSWERS.init. Specifically the error when the given container class does not exist.Steps to recreate:
4.5. Inserting the missing element also does not work
The text was updated successfully, but these errors were encountered: