next-box 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,10 +7,10 @@ A library for developing extensions, components and working with data in the Nex
|
|
|
7
7
|
import { initFileApi } from 'next-box';
|
|
8
8
|
|
|
9
9
|
initFileApi().then((fileApi) => {
|
|
10
|
-
// Download file
|
|
11
|
-
fileApi.download().then(response => response.text()).then(data => {
|
|
12
|
-
document.body.innerHTML = data;
|
|
13
|
-
});
|
|
10
|
+
// Download file
|
|
11
|
+
fileApi.download().then(response => response.text()).then(data => {
|
|
12
|
+
document.body.innerHTML = data;
|
|
13
|
+
});
|
|
14
14
|
|
|
15
15
|
// Replace file content
|
|
16
16
|
fileApi.replace('new content')
|