From bd0fc7b46136114c2d806821add423f89fdb0c06 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Tue, 7 Oct 2008 16:52:05 -0700 Subject: [PATCH] Adding a beta support message for Chrome and Safari. --- static/js/Wiki.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index 51003d8..81a3ddf 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -49,12 +49,20 @@ function Wiki( invoker ) { } if ( this.notebook && this.notebook.read_write ) { - unsupported_agent = null; - if ( /Opera/.test( navigator.userAgent ) ) + var unsupported_agent = null; + var beta_agent = null; + + if ( /Chrome/.test( navigator.userAgent ) ) + beta_agent = "Chrome"; + else if ( /Safari/.test( navigator.userAgent ) ) + beta_agent = "Safari"; + else if ( /Opera/.test( navigator.userAgent ) ) unsupported_agent = "Opera"; if ( unsupported_agent ) this.display_message( "Luminotes does not currently support the " + unsupported_agent + " web browser for editing. If possible, please use Firefox or Internet Explorer instead. " + unsupported_agent + " support will be added in a future release. Sorry for the inconvenience." ); + else if ( beta_agent ) + this.display_message( "Luminotes support for your web browser (" + beta_agent + ") is currently in beta. If you encounter any problems, please contact support so that they can be fixed!" ); } var deleted_id = getElement( "deleted_id" ).value;