Skip to content

Commit

Permalink
using the existing SCS object for swiper prefs
Browse files Browse the repository at this point in the history
  • Loading branch information
takeo committed Feb 13, 2011
1 parent d59e540 commit 8f37a83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Brief.SkypeChatStyle/Contents/Resources/js/steezy.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ var add_emoticons = function(message) {
return emoticonned
};

SWIPER = {};
SCS.swiper = 'yes';

var add_swiper = function(message, html) {
var the_match = message.match(/swiper:\ (.*)/i);
Expand All @@ -101,12 +101,12 @@ var add_swiper = function(message, html) {
embed = '';

if (term.test('no swiping','i')) {
SWIPER.swiping = 'no';
SCS.swiper = 'no';
embed += '<br>awww maannnn!!';
} else if (term.test('start swiping','i')) {
SWIPER.swiping = 'yes';
SCS.swiper = 'yes';
embed += '<br>swiper now swiping!';
} else if (SWIPER.swiping === 'no') {
} else if (SCS.swiper === 'no') {
embed += '';
} else {
embed += '<br><img style="max-width:500px;height:auto" src="http://floating-earth-914.heroku.com/image/' + term + '?sender=' + sender + '">';
Expand Down

0 comments on commit 8f37a83

Please sign in to comment.