Partial revert of b6a7167
JS syntax requires space in else if
.
This commit is contained in:
parent
b6a7167907
commit
628016dbdb
@ -127,7 +127,7 @@
|
||||
if ('section.child' == event.name) {
|
||||
context.fillStyle = colors.child_sections;
|
||||
context.fillRect(x + period.begin * ratio, 0, (period.end - period.begin) * ratio, height);
|
||||
} elseif ('section' == event.category) {
|
||||
} else if ('section' == event.category) {
|
||||
context.beginPath();
|
||||
context.strokeStyle = "#dfdfdf";
|
||||
context.moveTo(x + period.begin * ratio, 0);
|
||||
|
@ -14,7 +14,7 @@
|
||||
if (4 === xhr.readyState && 200 === xhr.status && -1 !== xhr.responseText.indexOf('sf-toolbarreset')) {
|
||||
wdt.innerHTML = xhr.responseText;
|
||||
wdt.style.display = 'block';
|
||||
} elseif (4 === xhr.readyState && xhr.status != 200) {
|
||||
} else if (4 === xhr.readyState && xhr.status != 200) {
|
||||
confirm('An error occurred while loading the web debug toolbar (' + xhr.status + ': ' + xhr.statusText + ').\n\nDo you want to open the profiler?') && (window.location = '{{ path("_profiler", { "token": token }) }}');
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user