Skip to content

Commit d106580

Browse files
authored
Merge pull request #143 from patuwwy/fix-fork-meta
Fix fork metadata
2 parents 699d44b + e6ca0d6 commit d106580

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
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.242",
4+
"version": "0.13.243",
55
"description": "Shadertoy.com unofficial plugin.",
66
"homepage_url": "https://github.com/patuwwy/ShaderToy-Chrome-Plugin",
77
"background": {

app/shadertoy-plugin.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,7 @@
10581058
LOCALSTORAGE_SHADER_FORK_KEYNAME
10591059
);
10601060

1061+
window.gIsMyShader = true;
10611062
if (!storedShader) {
10621063
return;
10631064
}
@@ -1071,11 +1072,13 @@
10711072
gShaderToy.mEffect.DestroyPass(0);
10721073
}
10731074

1074-
gShaderToy.Load(JSON.parse(storedShader), true);
1075+
window.iLoadShader([JSON.parse(storedShader)]);
1076+
10751077
window.localStorage.setItem(
10761078
LOCALSTORAGE_SHADER_FORK_KEYNAME,
10771079
''
10781080
);
1081+
10791082
gShaderToy.mInfo.username = 'None';
10801083
gShaderToy.mInfo.id = '-1';
10811084
gShaderToy.mNeedsSave = true;

0 commit comments

Comments
 (0)