Closed flyingbaba closed 2 years ago
Where is localStorage used in the engine/boilerplate? Or is this in the game code itself?
It is in the engine.
Hmm, I can't see it in the engine repo except for the examples which aren't part of build?
I can't see it in the minified source of the engine either
That's odd, I'll investigate more thenever I will have time for it. Meanwhile I seearched for localStorage inside projects files and found none. From the config, I have a compress_engine, patch_xhr_out and inline_game_scripts set to true. Maybe engine compressor adds this ?
Ah yes, it is in the compressor: https://raw.githubusercontent.com/playcanvas/playcanvas-rest-api-tools/main/library-files/lz4.js
We could just modify that file to do a no-op/null instead
While trying to make a valid build for Google HTML5 validator we had an issue / blocker with
Advanced HTML check
.Here is the details:
The solution: Find (CTRL + F) localStorage mentioning in the code:
Change to:
After that varification can be passed.