From 4382de1604c2121985ea99bfdc789407bf7735f9 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Thu, 22 Oct 2020 10:29:31 -0400 Subject: [PATCH] Make opening of links in new tabs configurable. Default to not doing so except for in standalone viewer. --- doc/json-config-parameters.md | 8 ++++++++ src/js/pannellum.js | 33 +++++++++++++++++++++++++-------- src/standalone/standalone.js | 1 + utils/build/build.py | 2 +- 4 files changed, 35 insertions(+), 9 deletions(-) diff --git a/doc/json-config-parameters.md b/doc/json-config-parameters.md index b4d3ab9..05bf3b7 100644 --- a/doc/json-config-parameters.md +++ b/doc/json-config-parameters.md @@ -234,6 +234,14 @@ the configuration is provided via the URL; it defaults to `false` but can be set to `true` when using the API. +### `targetBlank` (boolean) + +When `true`, `target="_blank"` is set on most hyperlinks to open them in new +tabs. This is always `true` when using the standalone viewer since said viewer +is often used in an `