Skip to content

Commit bef026c

Browse files
authored
Merge pull request #135 from patuwwy/json-api
Change exportToJSON to Save
2 parents c9ee12d + e3065bd commit bef026c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "Shadertoy unofficial plugin.",
4-
"version": "0.13.237",
4+
"version": "0.13.239",
55
"description": "Shadertoy.com unofficial plugin.",
66
"homepage_url": "https://github.com/patuwwy/ShaderToy-Chrome-Plugin",
77
"background": {

app/shadertoy-plugin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@
529529

530530
window.ToyPlug.common.downloadJson(
531531
name + '.json',
532-
JSON.stringify(gShaderToy.exportToJSON())
532+
JSON.stringify(gShaderToy.Save())
533533
);
534534
}
535535
);
@@ -1135,7 +1135,7 @@
11351135
* Stores shader in localStorage and redirect to "new shader" page.
11361136
*/
11371137
onButtonClick() {
1138-
var shaderData = gShaderToy.exportToJSON(),
1138+
var shaderData = gShaderToy.Save(),
11391139
banner = this.createBanner(shaderData.info);
11401140

11411141
shaderData.renderpass.forEach(function(pass) {

0 commit comments

Comments
 (0)