You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Friday, May 3rd 2019, 4:49pm

pr16 failed:SyntaxError: Unexpected token :

Source code

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

use this code on krpanoplugin,pr13 is ok ,but pr15-16,ERROR: parsing './plugins/test.js' failed:SyntaxError: Unexpected token :,what's wrong with it?


Tuesday, May 7th 2019, 12:47pm


all plugin code would need to be within the krpanoplugin function itself, anything outside will be stripped away.

That's new since 1.19-pr15 and maybe that's the problem in your case...

Best regards,

Similar threads