mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-10-22 02:25:05 +00:00
26 lines
453 B
HTML
26 lines
453 B
HTML
|
<html>
|
||
|
<body>
|
||
|
<script>
|
||
|
var im = navigator.mozInputMethod;
|
||
|
if (im) {
|
||
|
im.oninputcontextchange = onIcc;
|
||
|
|
||
|
if (im.inputcontext) {
|
||
|
onIcc();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function onIcc() {
|
||
|
var ctx = im.inputcontext;
|
||
|
if (ctx) {
|
||
|
ctx.replaceSurroundingText(location.hash).then(function() {
|
||
|
/* Happy flow */
|
||
|
}, function(err) {
|
||
|
dump('ReplaceSurroundingText failed ' + err + '\n');
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|