From 5ecd4e66c7c1babb3466203b3497f52247aab2fd Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 29 Oct 2019 15:30:54 +0200 Subject: [PATCH] Update socket.io to v1.7.4 slim. --- assets/iframe.js | 2 +- views/main.pug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/iframe.js b/assets/iframe.js index 28c33aec..144ac2ff 100644 --- a/assets/iframe.js +++ b/assets/iframe.js @@ -47,7 +47,7 @@ // initialize realtime events asynchronously var script = document.createElement('script') - script.src = 'https://cdn.socket.io/socket.io-1.4.4.js' + script.src = 'https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.4/socket.io.slim.min.js' script.onload = function () { // use dom element for better cross browser compatibility var url = document.createElement('a') diff --git a/views/main.pug b/views/main.pug index d6b97e05..cd93d86f 100644 --- a/views/main.pug +++ b/views/main.pug @@ -94,6 +94,6 @@ html(lang='en', class=`${large ? 'large' : ''}${iframe ? 'iframe' : ''} theme-${ | } script(src='https://www.google.com/recaptcha/api.js', async, defer) - script(src='https://cdn.socket.io/socket.io-1.4.4.js') + script(src='https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.4/socket.io.slim.min.js') script(src=`${path}assets/superagent.js`) script(src=`${path}assets/client.js`)