mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 18:48:49 -05:00
Allow Safari to use websockets
This commit is contained in:
@@ -559,7 +559,7 @@ function parseINI(data){
|
||||
// unraid animated logo
|
||||
var unraid_logo = '<?readfile("$docroot/webGui/images/animated-logo.svg")?>';
|
||||
|
||||
var watchdog = new NchanSubscriber('/sub/var', /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? {subscriber:'longpoll'} : {});
|
||||
var watchdog = new NchanSubscriber('/sub/var');
|
||||
watchdog.on('message', function(data) {
|
||||
var ini = parseINI(data);
|
||||
var state = ini['fsState'];
|
||||
@@ -695,4 +695,4 @@ $(function() {
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user