Skip to content

Commit ce0d41c

Browse files
committed
update README JS example to expose function globally
1 parent 7c4082f commit ce0d41c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,9 @@ DynamicVariables=1
344344

345345
```javascript
346346
// In your HTML
347-
function getTemperature() {
347+
window.getTemperature = function() {
348348
return 72;
349-
}
349+
};
350350
```
351351

352352
---
@@ -635,7 +635,7 @@ git push origin feature/AmazingFeature
635635

636636
Built with powerful tools and inspired by the community
637637

638-
**[Microsoft Edge WebView2](https://developer.microsoft.com/en-us/microsoft-edge/webview2/)****[Rainmeter API](https://docs.rainmeter.net/developers/plugin/)****Rainmeter Community**
638+
**[Microsoft Edge WebView2](https://developer.microsoft.com/en-us/microsoft-edge/webview2/)****[Rainmeter API](https://docs.rainmeter.net/developers/plugin/plugin-anatomy/)****Rainmeter Community**
639639

640640
</div>
641641

0 commit comments

Comments
 (0)