Browse Source

Let customize target attribute for URL HotSpots

Sometimes it is needed to open HotSpot link right in the same frame ("_self") or in a named one.
pull/640/merge
Hrumpa 6 years ago
committed by Matthew Petroff
parent
commit
ba35ea8ffe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/js/pannellum.js

+ 1
- 1
src/js/pannellum.js View File

@@ -1707,7 +1707,7 @@ function createHotSpot(hs) {
} else if (hs.URL) {
a = document.createElement('a');
a.href = sanitizeURL(hs.URL);
a.target = '_blank';
a.target = hs.target ? hs.target : '_blank';
renderContainer.appendChild(a);
div.className += ' pnlm-pointer';
span.className += ' pnlm-pointer';


Loading…
Cancel
Save