Skip to content

Commit

Permalink
fix(ui): fix #565 ui not working with safari and basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Aug 6, 2020
1 parent 164266a commit 252c22d
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 6 deletions.
1 change: 1 addition & 0 deletions client/forbidden-markers-configuration-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
let s = document.createElement('script');
s.src = "forbidden-markers-configuration-map.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);
s.onreadystatechange = s.onload = () => { window.markerConfigInit(); };
}
Expand Down
1 change: 1 addition & 0 deletions client/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
let s = document.createElement('script');
s.src = "home.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);
s.onreadystatechange = s.onload = () => { window.homeInit(); };
ons.getScriptPage().onShow = function() {
Expand Down
8 changes: 4 additions & 4 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<link id="theme" rel="stylesheet" href="css/onsen-css-components.min.css">
<link id="map-theme" rel="stylesheet" href="css/valetudo-map.css">
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
<script src="js/onsenui.min.js"></script>
<script src="js/geometry-polyfill.js"></script>
<script src="js/pako_inflate.min.js"></script>
<script src="js/onsenui.min.js" crossorigin="use-credentials"></script>
<script src="js/geometry-polyfill.js" crossorigin="use-credentials"></script>
<script src="js/pako_inflate.min.js" crossorigin="use-credentials"></script>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#4285f4">
Expand All @@ -17,7 +17,7 @@
<title>Valetudo</title>
</head>
<body>
<script src="index.js"></script>
<script src="index.js" crossorigin="use-credentials"></script>
<ons-navigator id="appNavigator" swipeable swipe-target-width="80px">
<ons-page>
<ons-splitter id="appSplitter">
Expand Down
1 change: 1 addition & 0 deletions client/manualcontrol.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
let s = document.createElement('script');
s.src = "manualcontrol.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);

ons.getScriptPage().onShow = function() {
Expand Down
1 change: 1 addition & 0 deletions client/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
let s = document.createElement('script');
s.src = "map.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);
}
</script>
Expand Down
1 change: 1 addition & 0 deletions client/settings-access-control.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
let s = document.createElement('script');
s.src = "settings-access-control.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);

ons.getScriptPage().onShow = function() {
Expand Down
1 change: 1 addition & 0 deletions client/settings-carpet-mode.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
let s = document.createElement('script');
s.src = "settings-carpet-mode.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);

ons.getScriptPage().onShow = function() {
Expand Down
1 change: 1 addition & 0 deletions client/settings-cleaning-history.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
let s = document.createElement('script');
s.src = "settings-cleaning-history.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);

ons.getScriptPage().onShow = function() {
Expand Down
1 change: 1 addition & 0 deletions client/settings-consumables.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
let s = document.createElement('script');
s.src = "settings-consumables.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);

ons.getScriptPage().onShow = function() {
Expand Down
1 change: 1 addition & 0 deletions client/settings-info.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
let s = document.createElement('script');
s.src = "settings-info.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);

ons.getScriptPage().onShow = function() {
Expand Down
1 change: 1 addition & 0 deletions client/settings-mqtt.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
let s = document.createElement('script');
s.src = "settings-mqtt.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);

ons.getScriptPage().onShow = function() {
Expand Down
1 change: 1 addition & 0 deletions client/settings-persistent-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
let s = document.createElement('script');
s.src = "settings-persistent-data.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);

ons.getScriptPage().onShow = function() {
Expand Down
1 change: 1 addition & 0 deletions client/settings-sound-voice.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
let s = document.createElement('script');
s.src = "settings-sound-voice.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);

ons.getScriptPage().onShow = function() {
Expand Down
1 change: 1 addition & 0 deletions client/settings-timers.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
let s = document.createElement('script');
s.src = "settings-timers.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);

ons.getScriptPage().onShow = function() {
Expand Down
1 change: 1 addition & 0 deletions client/settings-token.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
let s = document.createElement('script');
s.src = "settings-token.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);

ons.getScriptPage().onShow = function() {
Expand Down
1 change: 1 addition & 0 deletions client/settings-wifi.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
let s = document.createElement('script');
s.src = "settings-wifi.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);

ons.getScriptPage().onShow = function() {
Expand Down
1 change: 1 addition & 0 deletions client/spot-configuration-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
let s = document.createElement('script');
s.src = "spot-configuration-map.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);
s.onreadystatechange = s.onload = () => { window.spotMapInit(); };
}
Expand Down
4 changes: 2 additions & 2 deletions client/zone/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
<button id="goto">Goto</button>
<button id="repeat">Repeat: 1</button>
<button id="clean">Clean</button>
<script src="geometry-polyfill.js"></script>
<script src="main.js" type="module"></script>
<script src="geometry-polyfill.js" crossorigin="use-credentials"></script>
<script src="main.js" type="module" crossorigin="use-credentials"></script>
</body>

</html>
1 change: 1 addition & 0 deletions client/zones-configuration-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
let s = document.createElement('script');
s.src = "zones-configuration-map.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);
s.onreadystatechange = s.onload = () => { window.zoneMapInit(); };
}
Expand Down
1 change: 1 addition & 0 deletions client/zones.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
let s = document.createElement('script');
s.src = "zones.js";
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);

ons.getScriptPage().onShow = function() {
Expand Down

0 comments on commit 252c22d

Please sign in to comment.