Commit 7542ab55 authored by Travis Nuttall's avatar Travis Nuttall

use single quotes, correct path error message

parent 9c2488f7
......@@ -8,7 +8,7 @@ const { ThreadManager } = NativeModules;
export default class Thread {
constructor(jsPath) {
if (!jsPath || !jsPath.endsWith('.js')) {
throw new Error("Invalid worker path. Only js files are supported");
throw new Error('Invalid path for thread. Only js files are supported');
}
this.id = ThreadManager.startThread(jsPath.replace(".js", ""))
......
......@@ -14,7 +14,7 @@ const self = {
}
};
DeviceEventEmitter.addListener("ThreadMessage", (message) => {
DeviceEventEmitter.addListener('ThreadMessage', (message) => {
!!message && self.onmessage && self.onmessage(message);
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment