> For the complete documentation index, see [llms.txt](https://docs.changeup.com/salesforce/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.changeup.com/salesforce/salesforce-b2c-commerce/other-notes/failover.md).

# Failover

### Known Issues

{% code lineNumbers="true" %}

```javascript
Array.prototype.every = function (callback) { const { length } = this;
    for (let index = 0; index < length; index += 1) { 
        const value = this[index];
            if (!callback(value, index, this)) { return false;}
    }
    return true;
};

```

{% endcode %}

If the client-side Javascript needs to be recompiled for the **bm\_changeup** cartridge, a code update is needed in an **autocomplete.js** file **node\_modules > autocomplete.js > zepto.js**. This update needs to go in on line 7 of the file above. This is due to Business Manager utilizing the Prototype.js library that overrides the default functionality of the `Array.prototype.every` function.

This leads to client-side script errors when autocomplete.js tries to initialize its DOM elements.

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.changeup.com/salesforce/salesforce-b2c-commerce/other-notes/failover.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
