Chrome Extension with React – gotcha

I’m rebuilding my Chrome Extension Tab List to use ReactJS (as part of my learning trip) and encountered following error:

Uncaught EvalError: Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed source of script in the following Content Security Policy directive: “script-src ‘self’ blob: filesystem: chrome-extension-resource:”.

Continue reading

Posted in bugs, JavaScript, ReactJS | Tagged , , , , , , | Comments Off on Chrome Extension with React – gotcha

Web App – Hiragana/Katakana Tester – made with ReactJS

I want to present another Web App that I’ve made during my ReactJS adventure. This app is the Hiragana/Katakana [syllabary] Tester.
Continue reading

Posted in JavaScript, ReactJS | Tagged , , , , , , | Comments Off on Web App – Hiragana/Katakana Tester – made with ReactJS

Order of Higher Order Components (HOC) matters

I’ve just learned the hard way that order of calling Higher Order Components (HOC) matters and can lead to hard to debug errors. I’ve used the Redux and React Router Dom. Started with Redux so I had component like so:

import react, {Component} from 'react'
import connect from 'react-redux/lib/connect/connect';

class Home extends Component {
    // ... chopped for brevity
}

export default connect(mapStateToProps)(Home);

Continue reading

Posted in JavaScript, ReactJS | Tagged , , , | Comments Off on Order of Higher Order Components (HOC) matters

Web App – Little Mathematician – made with ReactJS

I’m looking into ReactJS framework and wanted to build something useful while learning it. I’ve decided to build an educational math game which I’ve called ‘Little Mathematician’.
Continue reading

Posted in JavaScript, ReactJS | Tagged , , , | Comments Off on Web App – Little Mathematician – made with ReactJS

Storyline 360 custom volume control

Today I was asked by my colleague at work to help her out with fixing problem with custom volume control. She was using StoryLine 2 solution from this page but on Storyline 360. Following is the script from the SL2 solution:

var player = GetPlayer();
var volumeCount = player.GetVar('volumeCount')
Audio.setMasterVolume(volumeCount);

Continue reading

Posted in JavaScript | Tagged , | 5 Comments