diff --git a/pages/editor.js b/pages/editor.js index 0f4b31a..3353519 100644 --- a/pages/editor.js +++ b/pages/editor.js @@ -32,7 +32,7 @@ import { getState, saveState } from '../lib/util' const removeQueryString = str => { const qI = str.indexOf('?') - return qI >= 0 ? str.substr(0, qI) : str + return (qI >= 0 ? str.substr(0, qI) : str).replace(/(?:.|\s)*<\/script>/g, '') } class Editor extends React.Component {