|
1 |
| -<!DOCTYPE html> |
| 1 | +<!doctype html> |
2 | 2 | <html>
|
3 | 3 | <head>
|
4 |
| - <meta charset="utf-8"> |
5 |
| - <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
6 |
| - <meta name="viewport" content="width=device-width,initial-scale=1.0"> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 6 | + <meta name="viewport" content="width=device-width,initial-scale=1.0" /> |
7 | 7 | <title>Dependency-Track</title>
|
| 8 | + <base href="/" /> |
8 | 9 | </head>
|
9 | 10 | <body class="sidebar-minimized">
|
10 | 11 | <noscript>
|
11 |
| - <strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> |
| 12 | + <strong |
| 13 | + >We're sorry but this app doesn't work properly without JavaScript |
| 14 | + enabled. Please enable it to continue.</strong |
| 15 | + > |
12 | 16 | </noscript>
|
13 | 17 | <div id="app"></div>
|
14 | 18 | <script type="text/javascript">
|
15 |
| - (function() { |
| 19 | + (function () { |
16 | 20 | if (!sessionStorage.length) {
|
17 | 21 | // Ask other tabs for session storage
|
18 | 22 | localStorage.setItem('getSessionStorage', Date.now());
|
19 |
| - }; |
| 23 | + } |
20 | 24 | window.addEventListener('storage', function (event) {
|
21 | 25 | if (event.key == 'getSessionStorage') {
|
22 | 26 | // Some tab asked for the sessionStorage -> send it
|
23 |
| - localStorage.setItem('sessionStorage', JSON.stringify(sessionStorage)); |
| 27 | + localStorage.setItem( |
| 28 | + 'sessionStorage', |
| 29 | + JSON.stringify(sessionStorage), |
| 30 | + ); |
24 | 31 | localStorage.removeItem('sessionStorage');
|
25 | 32 | } else if (event.key == 'sessionStorage' && !sessionStorage.length) {
|
26 | 33 | // sessionStorage is empty -> fill it
|
27 |
| - var data = JSON.parse(event.newValue), value; |
| 34 | + var data = JSON.parse(event.newValue), |
| 35 | + value; |
28 | 36 | for (key in data) {
|
29 | 37 | sessionStorage.setItem(key, data[key]);
|
30 | 38 | }
|
|
0 commit comments