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/639/head
Hrumpa 6 years ago
committed by GitHub
parent
commit
a50f7dc739
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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