# Web Demo

## ◾ About

This is a **demo page** for your addon's web-browser.

To edit this and your other URLs; open **`lua\vliss\sh\cfg\sh_cfg_tabs.lua`**

## ◾ Integrated Browser Mode

The integrated browser mode displays your configured websites internally within the interface.&#x20;

## ◾ Steam Browser Mode

This option will display your configured websites within the Steam overlay.

## ◾ Changing Modes

To change between Integrated Browser and the Steam Browser; open the file specified in the **About** section.

You must change the name of the function called to switch between integrated and browser mode:

{% tabs %}
{% tab title="lua\vliss\sh\cfg\sh\_cfg\_tabs.lua" %}

```lua
base:OpenExternal( cfg.Menu.TitleDonate, cfg.Menu.LinkDonate )
```

{% endtab %}
{% endtabs %}

Under each function similar to above; there is a commented line below it which includes code to use the Steam Browser. You must comment the Integrated Browser code, and uncomment the Steam Browser code.

```
-- Internal
base:OpenExternal( cfg.Menu.TitleDonate, cfg.Menu.LinkDonate )

-- External
-- gui.OpenURL( cfg.Menu.LinkDonate )
```

{% hint style="info" %}
This method will change in the v2.0 rewrite.
{% endhint %}

## ◾ Important Note (blank pages)

Currently; the integrated browser mode works by utilizing a library developed by Facepunch for Garry's Mod. Developers do not have access to actually change / update code in that library.

If you enable the Integrated Browser; and notice that certain websites are appearing blank; then you will need to either change the URL; or disable the integrated browser.

This is due to the fact that the provided library by Facepunch is extremely outdated and is based on Chromium v22 which is extremely outdated and does not recognize code used on websites. As of writing this; the current version of Chromium is v89.

Until Facepunch actually updates Chromium for Garry's Mod; this is the only solution.


---

# Agent Instructions: 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://vliss.rlib.io/internal/demo.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.
