blob: 0afee49e50388c5bd1f76d472f7f745d1738ae16 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Handle a message coming from the NaCl module. The message payload is
// assumed to contain the current estimated value of Pi. Update the Pi
// text display with this value.
function handleMessage(message_event) {
document.getElementById('pi').value = message_event.data;
}