1// Copyright (c) 2012 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5// Handle a message coming from the NaCl module. The message payload is 6// assumed to contain the current estimated value of Pi. Update the Pi 7// text display with this value. 8function handleMessage(message_event) { 9 document.getElementById('pi').value = message_event.data; 10} 11