Hello,
I'm attempting to create my own little front end (minimal experience in Web Development) using Tasker's built-in Webview Element and Scenes. I seem to be having an issue with "refreshing" CSS content.
I use an external app called "FolderSync" and it allows me to use it's plugin to sync files and folders from Google Drive to my device. (I can confirm this app has nothing to do with the issue as I'm currently using it for other js functions)
html sync: /sdcard/Tasker/Scripts/default.html
css sync: /sdcard/Tasker/Scripts/styles.css
HTML Code: (testing capabilities, so no real information)
<!doctype html>
<html lang="en">
<head>
<title>Tasker Webview</title>
<link rel="stylesheet" type="text/css" href="/sdcard/Tasker/Scripts/WebSite/styles.css">
</head>
<body>
<div class="box">
<h1>This is a TEST</h1>
</div>
</body>
</html>
Css:
body {
width: 90%;
margin-left: 5%;
margin-right: 5%;
background-color: #FFF;
}
.box {
color: green;
}
I'll change the text color in class box, and the Webview "appears" to be caching information some how as it doesn't update unless I change the path to the css file in the html document. I've searched some simple force refresh css on reload, and they do not help.
Any information would be great.
Tasker version: 4.7u3m
Android Version: 5.1.1