You are not logged in.

1

Friday, May 3rd 2019, 4:49pm

pr16 failed:SyntaxError: Unexpected token :

Source code

1
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?

2

Tuesday, May 7th 2019, 12:47pm

Hi,

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,
Klaus