Skip to content

Commit e8d337a

Browse files
authored
Ensure vm quicksets only show up in the quote playground (#168)
1 parent b7db00a commit e8d337a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

script.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ const observer = new MutationObserver((mutations) => {
5151
const modal = document.querySelector(
5252
'[data-testid="api-playground-modal"]'
5353
);
54-
if (modal) {
54+
const title = document.querySelector("#page-title");
55+
const isQuotePage = "Get Quote" === title?.textContent;
56+
if (modal && isQuotePage) {
5557
if (document.getElementById("custom-vm-quicksets")) {
5658
return;
5759
}

0 commit comments

Comments
 (0)