(string, putativeStart)
| 129 | var MESSAGE_PREFIX = "com.bn.NobleJS.setImmediate" + Math.random(); |
| 130 | |
| 131 | function isStringAndStartsWith(string, putativeStart) { |
| 132 | return typeof string === "string" && string.substring(0, putativeStart.length) === putativeStart; |
| 133 | } |
| 134 | |
| 135 | function onGlobalMessage(event) { |
| 136 | // This will catch all incoming messages (even from other windows!), so we need to try reasonably hard to |