From 9b870fde64303a97eb1fb77e68c77b4b5c166f2a Mon Sep 17 00:00:00 2001 From: ToxicFrazzles Date: Wed, 8 Jul 2020 11:51:16 +0100 Subject: [PATCH] Fix syntax error in plugins/subspace_storage/static/storage.js (#302) Fix _lastData being used as a global causing the script to fail to load after strict mode was added. --- plugins/subspace_storage/static/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/subspace_storage/static/storage.js b/plugins/subspace_storage/static/storage.js index a2f9157d..be42b8ee 100644 --- a/plugins/subspace_storage/static/storage.js +++ b/plugins/subspace_storage/static/storage.js @@ -1,6 +1,6 @@ // function to draw data we recieve from ajax requests "use strict"; -_lastData = []; +var _lastData = []; function drawcontents(data) { data = data || _lastData; //Cache data so we can drawcontents without waiting for the server, for the search box. _lastData = data;