Comments (2)
Hi.
Yes that's right, not being able to display anything when lacking connectivity is not the best experience I agree.
Caching would be great to have at least, and yes, maybe having a 404-style page to display in these case would be better.
from rpatchur.
Oh yeah, another alternative solution is load the page using AJAX.
First make an HTML for the loader like this
Note: this is just a demonstration, We need to parse body tag, window.eval the scripts tags and load src scripts to load in document.
<body>
Loading Patcher..
<script>
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function () {
if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
document.body.innerHTML = xmlHttp.responseText;
}
}
xmlHttp.open("GET", "http://yourserver.com/patcher.html", true);
xmlHttp.send()
</script>
</body>
Also some modification will be needed if the HTML were outside the executable.
Note: In general storing the assets outside executable are greater security risk
web:
# index_url: file://C:/randomFiles/OhNoWhatIsThis/myRO/loader.html
index_url: {current_dir}/loader.html
from rpatchur.
Related Issues (20)
- Support multiple remote patch servers HOT 1
- Allow starting clients without a .exe extension
- Allow installing patches while downloading
- SSO Login fails due wrong params order HOT 1
- Allow applying patches manually
- Feature Request: Patching multiple grf in one patcher HOT 2
- Tell the UI about downloaded bytes
- Adding support for patch inside subfolder HOT 3
- Disable maximize button when resizeable equal false HOT 1
- Open URL to default browser from patcher HOT 1
- Add binding to get checksums of client and patcher executables HOT 2
- Add binding to download an arbitrary remote patch
- Support borderless windows
- Patching grf in subfolders HOT 2
- Navigator issue ? HOT 1
- Update rpatchur libssl version
- WebView Javascript error: "Can't find variable: external" HOT 2
- Does it support grf encryption? HOT 1
- Failed to parse archive: Archive is malformed.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpatchur.