Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa committed Jan 31, 2019
1 parent 2979e32 commit 7a7db06
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ var uriFile = localStorage.getItem(appFileUri);

## Usage

```js
const SolidFile = require('solid-file-client')
const Widget = require("./build/widget.js")

```html
<script src="https://cdn.jsdelivr.net/npm/solid-file-client/dist/browser/solid-file-client.bundle.js"></script>
<script type="text/javascript" src="../build/widget.js"></script>
<script>
```javascript
const SolidFile = require('solid-file-client')
const Widget = require("solid-file-widget")
```
```HTML
<script src="https://cdn.jsdelivr.net/npm/solid-file-client/dist/browser/solid-file-client.bundle.js"></script>
<script type="text/javascript" src="../build/widget.js"></script>
<script>
const solidFile = SolidFileClient;
// ...
Expand Down Expand Up @@ -57,11 +58,6 @@ The widget has some configuration options to customize the behavior:
| `appFolder` | app root folder registered in Solid pod TypeIndex | String | from TypeIndex or '/public' |
| `appFile` | app file registered in Solid pod TypeIndex | String | from TypeIndex |
Example:
```js
const widget = new Widget(solidFile)
## Available Functions
`attach(elementID)` - Attach the widget to the DOM and display it. You can
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rs-widget",
"version": "0.4.0",
"version": "0.4.1",
"description": "Solid connect widget using solid-file-client.js",
"main": [
"./build/widget.js"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-file-widget",
"version": "0.4.0",
"version": "0.4.1",
"description": "solid-file-client connect widget",
"main": "build/widget.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/assets/widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ <h1 class="rs-big-headline">Connect your Solid Pod</h1>
<input type="text" name="rs-user-address" placeholder="Void 'webId-Pod' or 'https://<podName>'" autocapitalize="off">
<div class="rs-sign-in-error rs-hidden"></div>
<input type="submit" class="rs-connect" value="Connect">
<a href="https://github.com/bourgeoa/solid-file-widget/README.md" class="rs-help" target="_blank">Need help?</a>
<a href="https://github.com/bourgeoa/solid-file-widget/blob/master/README.md" class="rs-help" target="_blank">Need help?</a>
</form>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ Widget.prototype = {
msgContainer.innerHTML = "";
msgContainer.classList.remove('rs-visible');
msgContainer.classList.add('rs-hidden');
if ( this.click === true && this.windowReload === true) {/*alert("disconnect windowReload");*/ window.location.reload(true)}
if ( this.click === true && this.windowReload === true) { window.location.reload(true)}
},

/**
Expand Down

0 comments on commit 7a7db06

Please sign in to comment.