Pārlūkot izejas kodu

Make example compatible with being run in an iframe.

The '#' would make it reload the current page inside the iframe or
something weird. Tried to work around it, but decided this was the
easiest fix for now.
master
rayburgemeestre pirms 6 gadiem
vecāks
revīzija
2ef40dff80
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/examples/call_cpp_example

+ 1
- 1
src/examples/call_cpp_example Parādīt failu

@@ -50,7 +50,7 @@ const html_code = `
</script>
</head>
<body>
<a id="clickText" href="#" onclick="callCPPCode()">Click to call C++ code</a>
<a id="clickText" href="javascript:void(0)" onclick="callCPPCode()">Click to call C++ code</a>
</body>
</html>`.trim();


Notiek ielāde…
Atcelt
Saglabāt