Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,4 @@ dist

# TernJS port file
.tern-port
self-hosting-example/package-lock.json
1 change: 1 addition & 0 deletions self-hosting-example/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
package-lock.json
8 changes: 5 additions & 3 deletions self-hosting-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@ Overwrite all applications in the Window registry
`Type: REG_SZ`
`Data: http://assetServerUrl`

Where http://assetServerUrl is the url of your hosted assets.
Where http://assetServerUrl is the url of your hosted assets e.g. http://localhost:5555/ for this sample.

## Demo

This repository includes a sample app which targets a custom _legacy_ release channel, a sample channel specific to this project. The assets url is configured in the sample [app.json](https://github.com/openfin/hosting-demo/blob/master/app.json#L14) included in this project. To launch the sample application:
This repository includes a sample app which targets a custom version which is fetched from the custom asset location.

To launch the sample application load the launch page in the browser using the command below and then click on the fins link to launch the application:

```bash
npm run oflaunch
npm run launch
```

The application dynamically populates a div with its current OpenFin version, as a number.
Expand Down
11 changes: 11 additions & 0 deletions self-hosting-example/launch.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Launch</title>
</head>
<body>
<h1>Sample Launcher</h1>
<p><a href="fin://localhost:5555/manifest">Click to launch</a></p>
</body>
</html>
7 changes: 0 additions & 7 deletions self-hosting-example/openfin.js

This file was deleted.

Loading