Skip to content

Commit

Permalink
Fixed mobile UI effect list not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie committed Feb 12, 2019
1 parent 4fd904f commit a371239
Show file tree
Hide file tree
Showing 3 changed files with 1,183 additions and 1,184 deletions.
6 changes: 3 additions & 3 deletions wled00/data/index_mobile.htm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<meta content="yes" name="apple-mobile-web-app-capable">
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAGACGAAAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAAQAAAAEAgGAAAAH/P/YQAAAE1JREFUOI1j/P//PwOxgNGeAUMxE9G6cQCKDWAhpADZ2f8PMjBS3QW08QK20KaZC2gfC9hCnqouoNgARgY7zMxAyNlUdQHlXiAlO2MDAD63EVqNHAe0AAAAAElFTkSuQmCC"/>
<title>WLED 0.8.3</title>
<script>function feedback(){}</script>
<style>
*{transition-duration: 0.5s;}
body {
Expand Down Expand Up @@ -375,7 +376,7 @@
var nla=false;
var lbri=222;
//Feedback
function feedback(){
feedback = function() {
var e = d.body;
e.classList.remove("feedbackanim");
void e.offsetWidth;
Expand Down Expand Up @@ -465,7 +466,7 @@
function fillfx(fp){
e="Error loading list!";
el = d.getElementById(fp?'fpl':'fxl');
fetch(fp?'/json/palettes':'http://10.10.1.52/json/effects')
fetch(fp?'/json/palettes':'/json/effects')
.then(res => {
if (!res.ok) {
el.innerHTML=e;
Expand Down Expand Up @@ -543,7 +544,6 @@
d.getElementsByClassName("desc")[0].innerHTML = this.responseXML.getElementsByTagName('ds')[0].innerHTML;
recv =1;
uB();
setTimeout(fillfx, 500);
}
}
request.open("GET", "win" +nocache, true);
Expand Down
Loading

0 comments on commit a371239

Please sign in to comment.