fixer la deconnexion

This commit is contained in:
2017-03-17 00:02:38 +01:00
parent bb6b5d2eb7
commit 0077953174

View File

@ -100,7 +100,16 @@
); );
}; };
$(document).ready(function(){ </script>
@if (!ViewBag.IsAuthenticated) { // Get the user name and store it to prepend to messages.
<script>
$('#displayname').val(prompt('Enter your name:', ''));
</script>
}
<script>
// Reference the auto-generated proxy for the hub. // Reference the auto-generated proxy for the hub.
var chat = $.connection.chatHub; var chat = $.connection.chatHub;
// Create a function that the hub can call back to display messages. // Create a function that the hub can call back to display messages.
@ -222,12 +231,6 @@
}, 3000); // Re-start connection after 3 seconds }, 3000); // Re-start connection after 3 seconds
}); });
}); });
});
</script> </script>
@if (!ViewBag.IsAuthenticated) { // Get the user name and store it to prepend to messages. }
<script>
$('#displayname').val(prompt('Enter your name:', ''));
</script>
} }