Commit 3c63421f authored by yann300's avatar yann300

fix used key

parent 7288f1c1
...@@ -9,7 +9,7 @@ window.onload = function () { ...@@ -9,7 +9,7 @@ window.onload = function () {
document.querySelector('input#testmessageadd').addEventListener('click', function () { document.querySelector('input#testmessageadd').addEventListener('click', function () {
window.parent.postMessage(JSON.stringify({ window.parent.postMessage(JSON.stringify({
action: 'request', action: 'request',
key: 'editor', key: 'config',
type: 'setConfig', type: 'setConfig',
value: [document.getElementById('filename').value, document.getElementById('valuetosend').value], value: [document.getElementById('filename').value, document.getElementById('valuetosend').value],
id: 34 id: 34
...@@ -19,7 +19,7 @@ window.onload = function () { ...@@ -19,7 +19,7 @@ window.onload = function () {
document.querySelector('input#testmessageremove').addEventListener('click', function () { document.querySelector('input#testmessageremove').addEventListener('click', function () {
window.parent.postMessage(JSON.stringify({ window.parent.postMessage(JSON.stringify({
action: 'request', action: 'request',
key: 'editor', key: 'config',
type: 'removeConfig', type: 'removeConfig',
value: [document.getElementById('filename').value], value: [document.getElementById('filename').value],
id: 35 id: 35
...@@ -29,7 +29,7 @@ window.onload = function () { ...@@ -29,7 +29,7 @@ window.onload = function () {
document.querySelector('input#testmessagerget').addEventListener('click', function () { document.querySelector('input#testmessagerget').addEventListener('click', function () {
window.parent.postMessage(JSON.stringify({ window.parent.postMessage(JSON.stringify({
action: 'request', action: 'request',
key: 'editor', key: 'config',
type: 'getConfig', type: 'getConfig',
value: [document.getElementById('filename').value], value: [document.getElementById('filename').value],
id: 36 id: 36
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment