only need single quotes here

This commit is contained in:
ccd0 2014-05-15 09:30:08 -07:00
parent db486e360e
commit 4b757fb0a3

View File

@ -4,19 +4,19 @@ Fourchan =
board = g.BOARD.ID board = g.BOARD.ID
if board is 'g' if board is 'g'
$.globalEval """ $.globalEval '''
window.addEventListener('prettyprint', function(e) { window.addEventListener('prettyprint', function(e) {
window.dispatchEvent(new CustomEvent('prettyprint:cb', { window.dispatchEvent(new CustomEvent('prettyprint:cb', {
detail: prettyPrintOne(e.detail) detail: prettyPrintOne(e.detail)
})); }));
}, false); }, false);
""" '''
Post.callbacks.push Post.callbacks.push
name: 'Parse /g/ code' name: 'Parse /g/ code'
cb: @code cb: @code
if board is 'sci' if board is 'sci'
# https://github.com/MayhemYDG/4chan-x/issues/645#issuecomment-13704562 # https://github.com/MayhemYDG/4chan-x/issues/645#issuecomment-13704562
$.globalEval """ $.globalEval '''
window.addEventListener('jsmath', function(e) { window.addEventListener('jsmath', function(e) {
if (jsMath.loaded) { if (jsMath.loaded) {
// process one post // process one post
@ -27,7 +27,7 @@ Fourchan =
jsMath.Autoload.LoadJsMath(); jsMath.Autoload.LoadJsMath();
} }
}, false); }, false);
""" '''
Post.callbacks.push Post.callbacks.push
name: 'Parse /sci/ math' name: 'Parse /sci/ math'
cb: @math cb: @math